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

lolsob-rspec
Eugen Rochko 2019-03-04 01:06:19 +01:00 committed by GitHub
parent 1c6a9a6ea8
commit 8e75233020
1 changed files with 4 additions and 0 deletions

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