about summary refs log tree commit diff
path: root/app/lib/activitypub/activity/delete.rb
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2018-10-05 19:01:44 +0200
committerGitHub <noreply@github.com>2018-10-05 19:01:44 +0200
commit515ce8f4697fe7edfdf14c45575a71164b920db9 (patch)
tree1211e136ba3e886ee8daaa5200babffc42375dd1 /app/lib/activitypub/activity/delete.rb
parenta9e8f98a9d32c57956d41009bd09a1f33310676e (diff)
parent00fcdebed758f031b486ec239fd425fc54a180b3 (diff)
Merge pull request #762 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/lib/activitypub/activity/delete.rb')
-rw-r--r--app/lib/activitypub/activity/delete.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/lib/activitypub/activity/delete.rb b/app/lib/activitypub/activity/delete.rb
index 3474d55d9..457047ac0 100644
--- a/app/lib/activitypub/activity/delete.rb
+++ b/app/lib/activitypub/activity/delete.rb
@@ -17,6 +17,8 @@ class ActivityPub::Activity::Delete < ActivityPub::Activity
   end
 
   def delete_note
+    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?