about summary refs log tree commit diff
path: root/app/serializers/activitypub
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-03-04 01:53:58 +0100
committerGitHub <noreply@github.com>2019-03-04 01:53:58 +0100
commit1a7de769a318bbb9c01ec520c2033fffee4e89c3 (patch)
tree2bcfaa8c36fc1731d7e3ffafb83f0d4d22e6b6f7 /app/serializers/activitypub
parent0e6998da3cdc0ac73845d1c3c3c4c75972ea28ee (diff)
Fix ActivityPub votes having nil IDs (#10151)
Diffstat (limited to 'app/serializers/activitypub')
-rw-r--r--app/serializers/activitypub/vote_serializer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/serializers/activitypub/vote_serializer.rb b/app/serializers/activitypub/vote_serializer.rb
index ba1bd7b1d..655d04d22 100644
--- a/app/serializers/activitypub/vote_serializer.rb
+++ b/app/serializers/activitypub/vote_serializer.rb
@@ -6,7 +6,7 @@ class ActivityPub::VoteSerializer < ActiveModel::Serializer
                :in_reply_to, :to
 
     def id
-      nil
+      [ActivityPub::TagManager.instance.uri_for(object.account), '#votes/', object.id].join
     end
 
     def type
@@ -35,7 +35,7 @@ class ActivityPub::VoteSerializer < ActiveModel::Serializer
   has_one :object, serializer: ActivityPub::VoteSerializer::NoteSerializer
 
   def id
-    nil
+    [ActivityPub::TagManager.instance.uri_for(object.account), '#votes/', object.id, '/activity'].join
   end
 
   def type