Reject announce payload if object is nil (#33570)

This commit is contained in:
Jonathan de Jong 2025-01-13 14:35:16 +01:00 committed by GitHub
parent 3c4a83fc62
commit 3a762cddf6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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