mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 05:49:30 +08:00
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
This commit is contained in:
parent
a04c300495
commit
abb00c3780
|
@ -12,7 +12,10 @@ class UserApiKeyScope < ActiveRecord::Base
|
||||||
RouteMatcher.new(methods: :get, actions: 'notifications#index'),
|
RouteMatcher.new(methods: :get, actions: 'notifications#index'),
|
||||||
RouteMatcher.new(methods: :put, actions: 'notifications#mark_read')
|
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]) ]
|
bookmarks_calendar: [ RouteMatcher.new(methods: :get, actions: 'users#bookmarks', formats: :ics, params: %i[username]) ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user