Skip to content
Snippets Groups Projects
Unverified Commit c60f8ce0 authored by Claire's avatar Claire Committed by GitHub
Browse files

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

parent 14f436c4
No related branches found
No related tags found
No related merge requests found
......@@ -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?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment