From abb00c3780987678fbc6f21ab0c8e46ac297ca75 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Wed, 21 Oct 2020 19:44:34 +0100 Subject: [PATCH] FIX: Restore users#topic_tracking_state route to api session_info scope (#10992) This route was inadvertently removed in 1cec333f, and is required for showing new/unread counts in Discourse mobile apps --- app/models/user_api_key_scope.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/models/user_api_key_scope.rb b/app/models/user_api_key_scope.rb index 11bd403dd58..6b54d3ca65c 100644 --- a/app/models/user_api_key_scope.rb +++ b/app/models/user_api_key_scope.rb @@ -12,7 +12,10 @@ class UserApiKeyScope < ActiveRecord::Base RouteMatcher.new(methods: :get, actions: 'notifications#index'), RouteMatcher.new(methods: :put, actions: 'notifications#mark_read') ], - session_info: [ RouteMatcher.new(methods: :get, actions: 'session#current') ], + session_info: [ + RouteMatcher.new(methods: :get, actions: 'session#current'), + RouteMatcher.new(methods: :get, actions: 'users#topic_tracking_state') + ], bookmarks_calendar: [ RouteMatcher.new(methods: :get, actions: 'users#bookmarks', formats: :ics, params: %i[username]) ] }