diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-03-04 01:06:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-04 01:06:19 +0100 |
commit | 3cf98aac660aaed9acd533cac07c0fc092bbec5a (patch) | |
tree | 40e7e1dee07a186e7dc8e943482a287d97b45201 | |
parent | e6900b167b046c846d1276f5bf86b675542bc09b (diff) |
Fix missing in_reply_to in ActivityPub::VoteSerializer (#10148)
-rw-r--r-- | app/serializers/activitypub/vote_serializer.rb | 4 |
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 |