Fix `pinned` attribute not being set for private self-posts

signup-info-prompt
Claire 2022-01-17 09:07:45 +01:00
parent 5effc0f8fa
commit 77dd4ab8f5
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,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?