about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-03-04 01:06:19 +0100
committerGitHub <noreply@github.com>2019-03-04 01:06:19 +0100
commit3cf98aac660aaed9acd533cac07c0fc092bbec5a (patch)
tree40e7e1dee07a186e7dc8e943482a287d97b45201 /app
parente6900b167b046c846d1276f5bf86b675542bc09b (diff)
Fix missing in_reply_to in ActivityPub::VoteSerializer (#10148)
Diffstat (limited to 'app')
-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