mirror of
https://github.com/mastodon/mastodon.git
synced 2025-10-07 09:32:44 +00:00
Refer to pinnable visibilities constant from status serializer pinnable?
attribute (#35852)
This commit is contained in:
parent
1f2a84b3d0
commit
4abc442add
|
@ -155,7 +155,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 private).include?(object.visibility)
|
StatusRelationshipsPresenter::PINNABLE_VISIBILITIES.include?(object.visibility)
|
||||||
end
|
end
|
||||||
|
|
||||||
def source_requested?
|
def source_requested?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user