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/update.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/update.rb')
-rw-r--r-- | app/lib/activitypub/activity/update.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/lib/activitypub/activity/update.rb b/app/lib/activitypub/activity/update.rb index 70035325b..8fb48e073 100644 --- a/app/lib/activitypub/activity/update.rb +++ b/app/lib/activitypub/activity/update.rb @@ -4,6 +4,7 @@ class ActivityPub::Activity::Update < ActivityPub::Activity SUPPORTED_TYPES = %w(Application Group Organization Person Service).freeze def perform + return if autoreject? if equals_or_includes_any?(@object['type'], SUPPORTED_TYPES) update_account elsif equals_or_includes_any?(@object['type'], %w(Question)) |