Skip to content

Commit e21fda8

Browse files
Gargronhiyuki2578
authored andcommitted
Fix pinned statuses API returning pagination headers (mastodon#11526)
Fix mastodon#10227
1 parent 63774aa commit e21fda8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/controllers/api/v1/accounts/statuses_controller.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
class Api::V1::Accounts::StatusesController < Api::BaseController
44
before_action -> { authorize_if_got_token! :read, :'read:statuses' }
55
before_action :set_account
6-
after_action :insert_pagination_headers
6+
7+
after_action :insert_pagination_headers, unless: -> { truthy_param?(:pinned) }
78

89
respond_to :json
910

0 commit comments

Comments
 (0)