diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-08-08 23:04:04 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-08-09 21:35:35 +0200 |
commit | b95281b533be43091ecf94268d031f1896c524f1 (patch) | |
tree | ec4bfb0bed0c416e21bfc6f1447f587e6931e3b1 | |
parent | 5432edb5a765eb9621a89caf34b78ece41529374 (diff) |
Fix pinned statuses API returning pagination headers (#11526)
Fix #10227
-rw-r--r-- | app/controllers/api/v1/accounts/statuses_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/api/v1/accounts/statuses_controller.rb b/app/controllers/api/v1/accounts/statuses_controller.rb index 8cd8f8e7996..13cb4caf120 100644 --- a/app/controllers/api/v1/accounts/statuses_controller.rb +++ b/app/controllers/api/v1/accounts/statuses_controller.rb @@ -3,7 +3,8 @@ class Api::V1::Accounts::StatusesController < Api::BaseController before_action -> { authorize_if_got_token! :read, :'read:statuses' } before_action :set_account - after_action :insert_pagination_headers + + after_action :insert_pagination_headers, unless: -> { truthy_param?(:pinned) } respond_to :json |