about summary refs log tree commit diff
path: root/app/lib/activitypub
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-03-07 03:54:46 +0100
committerGitHub <noreply@github.com>2018-03-07 03:54:46 +0100
commite6520c027014aae9444dc58f8b3e7b618214a574 (patch)
tree16c53fb5ed60857abbdafca1ef9b61ab27d675ae /app/lib/activitypub
parent913a38111ff5b0cb7f412bec93e8314859c88855 (diff)
Fix #6657 - Use target instead of origin in Remove activity (#6664)
Diffstat (limited to 'app/lib/activitypub')
-rw-r--r--app/lib/activitypub/activity/remove.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/activitypub/activity/remove.rb b/app/lib/activitypub/activity/remove.rb
index 97cee5116..62a1e3196 100644
--- a/app/lib/activitypub/activity/remove.rb
+++ b/app/lib/activitypub/activity/remove.rb
@@ -2,7 +2,7 @@
 
 class ActivityPub::Activity::Remove < ActivityPub::Activity
   def perform
-    return unless @json['origin'].present? && value_or_id(@json['origin']) == @account.featured_collection_url
+    return unless @json['target'].present? && value_or_id(@json['target']) == @account.featured_collection_url
 
     status = status_from_uri(object_uri)