mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
Fix error code for disabled popular endpoint
This commit is contained in:
parent
9ce9c54399
commit
1363fb8094
1 changed files with 1 additions and 2 deletions
|
@ -30,8 +30,7 @@ module Invidious::Routes::API::V1::Feeds
|
|||
env.response.content_type = "application/json"
|
||||
|
||||
if !CONFIG.popular_enabled
|
||||
error_message = {"error" => "Administrator has disabled this endpoint."}.to_json
|
||||
haltf env, 400, error_message
|
||||
return error_json(403, "Administrator has disabled this endpoint.")
|
||||
end
|
||||
|
||||
JSON.build do |json|
|
||||
|
|
Loading…
Reference in a new issue