Revert "Fix error code for disabled popular endpoint"
This reverts commit 1363fb8094
.
This commit is contained in:
parent
1363fb8094
commit
c5eb10b21f
|
@ -30,7 +30,8 @@ module Invidious::Routes::API::V1::Feeds
|
||||||
env.response.content_type = "application/json"
|
env.response.content_type = "application/json"
|
||||||
|
|
||||||
if !CONFIG.popular_enabled
|
if !CONFIG.popular_enabled
|
||||||
return error_json(403, "Administrator has disabled this endpoint.")
|
error_message = {"error" => "Administrator has disabled this endpoint."}.to_json
|
||||||
|
haltf env, 400, error_message
|
||||||
end
|
end
|
||||||
|
|
||||||
JSON.build do |json|
|
JSON.build do |json|
|
||||||
|
|
Loading…
Reference in a new issue