Revert "Fix error code for disabled popular endpoint"

This reverts commit 1363fb8094.
This commit is contained in:
Brahim Hadriche 2024-04-01 10:02:49 -04:00
parent 1363fb8094
commit c5eb10b21f

View File

@ -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|