Allow pagination Link
headers on API accounts/statuses when pinned true (#29442)
This commit is contained in:
parent
edd6aa70e1
commit
eb1b8f69de
2 changed files with 47 additions and 3 deletions
|
@ -4,7 +4,7 @@ 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, unless: -> { truthy_param?(:pinned) }
|
||||
after_action :insert_pagination_headers
|
||||
|
||||
def index
|
||||
cache_if_unauthenticated!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue