1
0
Fork 0
forked from fedi/mastodon

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

This commit is contained in:
Claire 2022-01-17 11:59:46 +01:00 committed by GitHub
parent 14f436c457
commit c60f8ce032
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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