about summary refs log tree commit diff
path: root/app/lib/activitypub/activity/undo.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/lib/activitypub/activity/undo.rb')
-rw-r--r--app/lib/activitypub/activity/undo.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/lib/activitypub/activity/undo.rb b/app/lib/activitypub/activity/undo.rb
index 64c2be7d9..599823c6e 100644
--- a/app/lib/activitypub/activity/undo.rb
+++ b/app/lib/activitypub/activity/undo.rb
@@ -19,6 +19,8 @@ class ActivityPub::Activity::Undo < ActivityPub::Activity
   private
 
   def undo_announce
+    return if object_uri.nil?
+
     status   = Status.find_by(uri: object_uri, account: @account)
     status ||= Status.find_by(uri: @object['atomUri'], account: @account) if @object.is_a?(Hash) && @object['atomUri'].present?