From 6056edf7a584c62c6a8dfcc85b335bd38fa17966 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 4 Mar 2019 01:53:58 +0100 Subject: [PATCH] Fix ActivityPub votes having nil IDs (#10151) --- app/serializers/activitypub/vote_serializer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/serializers/activitypub/vote_serializer.rb b/app/serializers/activitypub/vote_serializer.rb index ba1bd7b1df..655d04d22e 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