mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-17 07:37:42 +01:00
Reject announce payload if object is nil (#33570)
This commit is contained in:
parent
3c4a83fc62
commit
3a762cddf6
@ -3,6 +3,7 @@
|
||||
class ActivityPub::Activity::Announce < ActivityPub::Activity
|
||||
def perform
|
||||
return reject_payload! if delete_arrived_first?(@json['id']) || !related_to_local_activity?
|
||||
return reject_payload! if @object.nil?
|
||||
|
||||
with_redis_lock("announce:#{value_or_id(@object)}") do
|
||||
original_status = status_from_object
|
||||
|
Loading…
x
Reference in New Issue
Block a user