mirror of
https://github.com/mastodon/mastodon.git
synced 2026-10-26 11:26:15 -05:00
Add check for wrong attribution of collections (#39525)
This commit is contained in:
@@ -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