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/services | |
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/services')
-rw-r--r-- | app/services/activitypub/process_collection_service.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/services/activitypub/process_collection_service.rb b/app/services/activitypub/process_collection_service.rb index 5c54aad89..881df478b 100644 --- a/app/services/activitypub/process_collection_service.rb +++ b/app/services/activitypub/process_collection_service.rb @@ -44,6 +44,7 @@ class ActivityPub::ProcessCollectionService < BaseService end def verify_account! + @options[:relayed_through_account] = @account @account = ActivityPub::LinkedDataSignature.new(@json).verify_account! rescue JSON::LD::JsonLdError => e Rails.logger.debug "Could not verify LD-Signature for #{value_or_id(@json['actor'])}: #{e.message}" |