mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2025-01-18 12:44:04 +01:00
Reject announce payload if object is nil (#33570)
This commit is contained in:
parent
3c4a83fc62
commit
3a762cddf6
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue