mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-10 00:46:12 +00:00
Fix pinned
attribute not being set for private self-posts
This commit is contained in:
parent
5effc0f8fa
commit
77dd4ab8f5
|
@ -124,7 +124,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?
|
||||||
|
|
Loading…
Reference in a new issue