Add menu for selecting trending page

This commit is contained in:
Omar Roth
2018-12-20 16:48:45 -06:00
parent 1360d67c11
commit 0feb414a1d
3 changed files with 30 additions and 1 deletions

View File

@@ -1743,7 +1743,10 @@ get "/feed/trending" do |env|
locale = LOCALES[env.get("locale").as(String)]?
trending_type = env.params.query["type"]?
trending_type ||= "Default"
region = env.params.query["region"]?
region ||= "US"
begin
trending = fetch_trending(trending_type, proxies, region, locale)