Fix `pinned` attribute not being set for private self-posts (#17304)

lolsob-rspec
Claire 2022-01-17 11:59:46 +01:00 committed by GitHub
parent 2fb76550a9
commit 833a5e4e52
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ class REST::StatusSerializer < ActiveModel::Serializer
current_user? &&
current_user.account_id == object.account_id &&
!object.reblog? &&
%w(public unlisted).include?(object.visibility)
%w(public unlisted private).include?(object.visibility)
end
def source_requested?