FIX: Add missing rss routes to parameter api whitelist

This commit is contained in:
David Taylor 2020-05-12 16:08:35 +01:00
parent c94e6a9a66
commit 0344ad14c1
No known key found for this signature in database
GPG Key ID: 46904C18B1D3F434
1 changed files with 8 additions and 5 deletions

View File

@ -24,15 +24,18 @@ class Auth::DefaultCurrentUserProvider
method: :get,
route: [
"posts#latest",
"posts#user_topics_feed",
"posts#user_posts_feed",
"groups#posts_feed",
"groups#mentions_feed",
"list#user_topics_feed",
"list#category_feed",
"list#latest_feed",
"list#new_feed",
"list#unread_feed",
"topics#feed"
"topics#feed",
"badges#show",
"tags#tag_feed",
"tags#show",
*[:latest, :unread, :new, :read, :posted, :bookmarks].map { |f| "list##{f}_feed" },
*[:all, :yearly, :quarterly, :monthly, :weekly, :daily].map { |p| "list#top_#{p}_feed" },
*[:latest, :unread, :new, :read, :posted, :bookmarks].map { |f| "tags#show_#{f}" }
],
format: :rss
},