Store remote votes URI (#10158)
* Store remote votes URI * Add spec for accepting remote votes * Make poll vote id generation work the same way as follows
This commit is contained in:
@ -6,7 +6,7 @@ class ActivityPub::VoteSerializer < ActiveModel::Serializer
|
||||
:in_reply_to, :to
|
||||
|
||||
def id
|
||||
[ActivityPub::TagManager.instance.uri_for(object.account), '#votes/', object.id].join
|
||||
ActivityPub::TagManager.instance.uri_for(object) || [ActivityPub::TagManager.instance.uri_for(object.account), '#votes/', object.id].join
|
||||
end
|
||||
|
||||
def type
|
||||
|
Reference in New Issue
Block a user