0
0
Fork 0

Allow pagination Link headers on API accounts/statuses when pinned true (#29442)

This commit is contained in:
Matt Jankowski 2024-02-29 09:21:56 -05:00 committed by GitHub
parent edd6aa70e1
commit eb1b8f69de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 47 additions and 3 deletions

View file

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