This commit is contained in:
Matt Jankowski 2025-09-03 20:07:44 +00:00 committed by GitHub
commit a1f2b4a0cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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?