diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-02-15 18:19:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-15 18:19:45 +0100 |
commit | c417e8c198238f80396c0e4e89c2653e4217108a (patch) | |
tree | 245ffe23cbb643ca51b98a62b402bffff87d777b /spec/lib/activitypub | |
parent | 8ef50706a11e115e8b4aa31b30de93738bc7e754 (diff) |
Filter incoming Announce activities by relation to local activity (#10041)
* Filter incoming Announce activities by relation to local activity Reject if announcer is not followed by local accounts, and is not from an enabled relay, and the object is not a local status Follow-up to #10005 * Fix tests
Diffstat (limited to 'spec/lib/activitypub')
-rw-r--r-- | spec/lib/activitypub/activity/announce_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/lib/activitypub/activity/announce_spec.rb b/spec/lib/activitypub/activity/announce_spec.rb index 1725c2843..5e6f008ec 100644 --- a/spec/lib/activitypub/activity/announce_spec.rb +++ b/spec/lib/activitypub/activity/announce_spec.rb @@ -18,6 +18,7 @@ RSpec.describe ActivityPub::Activity::Announce do subject { described_class.new(json, sender) } before do + Fabricate(:account).follow!(sender) sender.update(uri: ActivityPub::TagManager.instance.uri_for(sender)) end |