diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-10-19 01:47:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-19 01:47:29 +0200 |
commit | a38a452481d0f5207bb27ba7a2707c0028d2ac18 (patch) | |
tree | 5dfe4cab0fd6ebe15c924bd83e3abb6efca210db /config | |
parent | bebe8ec887ba67c51353e09d7758819b117bf62d (diff) |
Add unread indicator to conversations (#9009)
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/doorkeeper.rb | 2 | ||||
-rw-r--r-- | config/routes.rb | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/config/initializers/doorkeeper.rb b/config/initializers/doorkeeper.rb index fe2490b32..367eead6a 100644 --- a/config/initializers/doorkeeper.rb +++ b/config/initializers/doorkeeper.rb @@ -58,6 +58,7 @@ Doorkeeper.configure do optional_scopes :write, :'write:accounts', :'write:blocks', + :'write:conversations', :'write:favourites', :'write:filters', :'write:follows', @@ -76,7 +77,6 @@ Doorkeeper.configure do :'read:lists', :'read:mutes', :'read:notifications', - :'read:reports', :'read:search', :'read:statuses', :follow, diff --git a/config/routes.rb b/config/routes.rb index a2468c9bd..b203e1329 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -261,7 +261,12 @@ Rails.application.routes.draw do resources :streaming, only: [:index] resources :custom_emojis, only: [:index] resources :suggestions, only: [:index, :destroy] - resources :conversations, only: [:index] + + resources :conversations, only: [:index, :destroy] do + member do + post :read + end + end get '/search', to: 'search#index', as: :search |