1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Fix missing in_reply_to in ActivityPub::VoteSerializer (#10148)

This commit is contained in:
Eugen Rochko 2019-03-04 01:06:19 +01:00 committed by GitHub
parent e6900b167b
commit 3cf98aac66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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