Fix pinned statuses API returning pagination headers (#11526)

Fix #10227
lolsob-rspec
Eugen Rochko 2019-08-08 23:04:04 +02:00 committed by GitHub
parent 85466a2b9d
commit 24a5f99d10
1 changed files with 2 additions and 1 deletions

View File

@ -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