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
......@@ -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)
def source_requested?
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment