mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix spurious errors when receiving an Add activity for a private post (#17425)
This commit is contained in:
parent
1c8c318281
commit
6d831fe274
@ -7,7 +7,7 @@ class ActivityPub::Activity::Add < ActivityPub::Activity
|
||||
status = status_from_uri(object_uri)
|
||||
status ||= fetch_remote_original_status
|
||||
|
||||
return unless !status.nil? && status.account_id == @account.id && !@account.pinned?(status)
|
||||
return unless !status.nil? && status.account_id == @account.id && !@account.pinned?(status) && status.distributable?
|
||||
|
||||
StatusPin.create!(account: @account, status: status)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user