diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-07-22 20:04:15 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-07-22 20:14:29 -0500 |
commit | 86f29a68fbf5344291b21253f597a914cec18f02 (patch) | |
tree | aceda975c6666ae760e118ce0a2bb11c2f7fd1a7 /app/lib/activitypub/activity/announce.rb | |
parent | d82d7e0b2b7f03e17739f511b2f7dd21fac4342f (diff) |
allow autorejecting incoming ap activities by `id`, `@context`, and domain + autoject suspended domains & their subdomains
Diffstat (limited to 'app/lib/activitypub/activity/announce.rb')
-rw-r--r-- | app/lib/activitypub/activity/announce.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/lib/activitypub/activity/announce.rb b/app/lib/activitypub/activity/announce.rb index 99807d963..ada46b378 100644 --- a/app/lib/activitypub/activity/announce.rb +++ b/app/lib/activitypub/activity/announce.rb @@ -2,6 +2,7 @@ class ActivityPub::Activity::Announce < ActivityPub::Activity def perform + return if autoreject? return reject_payload! if !@options[:imported] && (delete_arrived_first?(@json['id']) || !related_to_local_activity?) original_status = status_from_object |