From 3cf98aac660aaed9acd533cac07c0fc092bbec5a Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 4 Mar 2019 01:06:19 +0100 Subject: [PATCH] Fix missing in_reply_to in ActivityPub::VoteSerializer (#10148) --- app/serializers/activitypub/vote_serializer.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/serializers/activitypub/vote_serializer.rb b/app/serializers/activitypub/vote_serializer.rb index 5489fbcd3e..ba1bd7b1df 100644 --- a/app/serializers/activitypub/vote_serializer.rb +++ b/app/serializers/activitypub/vote_serializer.rb @@ -21,6 +21,10 @@ class ActivityPub::VoteSerializer < ActiveModel::Serializer ActivityPub::TagManager.instance.uri_for(object.account) end + def in_reply_to + ActivityPub::TagManager.instance.uri_for(object.poll.status) + end + def to ActivityPub::TagManager.instance.uri_for(object.poll.account) end