Refer to list of pinnable visibilities

This commit is contained in:
Matt Jankowski 2025-08-07 11:13:15 -04:00
parent 3ab2d14782
commit e9430f752b

View File

@ -155,7 +155,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?