mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-05 17:31:12 +00:00
Refer to list of pinnable visibilities
This commit is contained in:
parent
f85f0eee1b
commit
d3cb149b57
|
@ -151,7 +151,7 @@ class REST::StatusSerializer < ActiveModel::Serializer
|
|||
current_user? &&
|
||||
current_user.account_id == object.account_id &&
|
||||
!object.reblog? &&
|
||||
%w(public unlisted private).include?(object.visibility)
|
||||
StatusRelationshipsPresenter::PINNABLE_VISIBILITIES.include?(object.visibility)
|
||||
end
|
||||
|
||||
def source_requested?
|
||||
|
|
Loading…
Reference in New Issue
Block a user