about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--app/serializers/activitypub/vote_serializer.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/serializers/activitypub/vote_serializer.rb b/app/serializers/activitypub/vote_serializer.rb
index 5489fbcd3..ba1bd7b1d 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