Refer to list of pinnable visibilities

This commit is contained in:
Matt Jankowski 2025-08-07 11:13:15 -04:00
parent f85f0eee1b
commit d3cb149b57

View File

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