Add check for wrong attribution of collections (#39525)
This commit is contained in:
1 parent
7608436b64
commit
052d6bb173
2 files changed
+13
-1
No files matched your search
@@ -12,6 +12,7 @@ class ActivityPub::ProcessFeaturedCollectionService
|
||||
@json = json
|
||||
@request_id = request_id
|
||||
return if non_matching_uri_hosts?(@account.uri, @json['id'])
|
||||
return unless @json['attributedTo'] == @account.uri
|
||||
|
||||
with_redis_lock("collection:#{@json['id']}") do
|
||||
Collection.transaction do
|
||||
|
||||
Reference in new issue
Block a user