about summary refs log tree commit diff
path: root/app/serializers/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/serializers/activitypub
parent913a38111ff5b0cb7f412bec93e8314859c88855 (diff)
Fix #6657 - Use target instead of origin in Remove activity (#6664)
Diffstat (limited to 'app/serializers/activitypub')
-rw-r--r--app/serializers/activitypub/remove_serializer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/serializers/activitypub/remove_serializer.rb b/app/serializers/activitypub/remove_serializer.rb
index 6da7e35d3..c35ee916e 100644
--- a/app/serializers/activitypub/remove_serializer.rb
+++ b/app/serializers/activitypub/remove_serializer.rb
@@ -3,7 +3,7 @@
 class ActivityPub::RemoveSerializer < ActiveModel::Serializer
   include RoutingHelper
 
-  attributes :type, :actor, :origin
+  attributes :type, :actor, :target
   attribute :proper_object, key: :object
 
   def type
@@ -18,7 +18,7 @@ class ActivityPub::RemoveSerializer < ActiveModel::Serializer
     ActivityPub::TagManager.instance.uri_for(object)
   end
 
-  def origin
+  def target
     account_collection_url(object, :featured)
   end
 end