Reject announce payload if object is nil (#33570)

pull/33557/head
Jonathan de Jong 2 months ago committed by GitHub
parent 3c4a83fc62
commit 3a762cddf6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save