Reject announce payload if object is nil (#33570)

This commit is contained in:
Jonathan de Jong authored and GitHub committed 2025-01-13 13:35:16 +00:00
1 parent 3c4a83fc62
commit 3a762cddf6
1 file changed
+1
+1
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