mirror of
https://gitea.invidious.io/iv-org/invidious
synced 2025-06-05 23:29:12 +02:00
Revert "Fix error code for disabled popular endpoint"
This reverts commit 1363fb8094
.
This commit is contained in:
@@ -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|
|
||||||
|
Reference in New Issue
Block a user