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

th-downstream
Claire 3 years ago
parent b20dafb566
commit a10833e909

@ -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?

Loading…
Cancel
Save