mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-09 17:58:23 +00:00
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"
|
||||
|
||||
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
|
||||
|
||||
JSON.build do |json|
|
||||
|
Loading…
Reference in New Issue
Block a user