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

master
Eugen Rochko 6 years ago committed by GitHub
parent e6900b167b
commit 3cf98aac66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/serializers/activitypub/vote_serializer.rb

@ -21,6 +21,10 @@ class ActivityPub::VoteSerializer < ActiveModel::Serializer
ActivityPub::TagManager.instance.uri_for(object.account) ActivityPub::TagManager.instance.uri_for(object.account)
end end
def in_reply_to
ActivityPub::TagManager.instance.uri_for(object.poll.status)
end
def to def to
ActivityPub::TagManager.instance.uri_for(object.poll.account) ActivityPub::TagManager.instance.uri_for(object.poll.account)
end end

Loading…
Cancel
Save