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/follow.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/follow.rb')
-rw-r--r-- | app/lib/activitypub/activity/follow.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/lib/activitypub/activity/follow.rb b/app/lib/activitypub/activity/follow.rb index 1e805c0d1..84041ec8d 100644 --- a/app/lib/activitypub/activity/follow.rb +++ b/app/lib/activitypub/activity/follow.rb @@ -2,6 +2,7 @@ class ActivityPub::Activity::Follow < ActivityPub::Activity def perform + return if autoreject? target_account = account_from_uri(object_uri) return if target_account.nil? || !target_account.local? || delete_arrived_first?(@json['id']) || @account.requested?(target_account) |