diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-02-13 18:42:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-13 18:42:47 +0100 |
commit | dad339da6d19679f0361bfd49d9bcf3a3517af0c (patch) | |
tree | b8f6084086bf3575dc012b701771ecd0f4350139 /app/workers | |
parent | 011b476d38663656988ae21ca29689aae01cb7c2 (diff) |
Filter incoming Create activities by relation to local activity (#10005)
Reject those from accounts with no local followers, from relays that are not enabled, which do not address local accounts and are not replies to accounts that do have local followers
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/activitypub/processing_worker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/activitypub/processing_worker.rb b/app/workers/activitypub/processing_worker.rb index a8a3ebf0f..a3abe72cf 100644 --- a/app/workers/activitypub/processing_worker.rb +++ b/app/workers/activitypub/processing_worker.rb @@ -6,6 +6,6 @@ class ActivityPub::ProcessingWorker sidekiq_options backtrace: true def perform(account_id, body, delivered_to_account_id = nil) - ActivityPub::ProcessCollectionService.new.call(body, Account.find(account_id), override_timestamps: true, delivered_to_account_id: delivered_to_account_id) + ActivityPub::ProcessCollectionService.new.call(body, Account.find(account_id), override_timestamps: true, delivered_to_account_id: delivered_to_account_id, delivery: true) end end |