|
|
@ -6,7 +6,7 @@ class ActivityPub::VoteSerializer < ActiveModel::Serializer
|
|
|
|
:in_reply_to, :to
|
|
|
|
:in_reply_to, :to
|
|
|
|
|
|
|
|
|
|
|
|
def id
|
|
|
|
def id
|
|
|
|
nil
|
|
|
|
[ActivityPub::TagManager.instance.uri_for(object.account), '#votes/', object.id].join
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def type
|
|
|
|
def type
|
|
|
@ -35,7 +35,7 @@ class ActivityPub::VoteSerializer < ActiveModel::Serializer
|
|
|
|
has_one :object, serializer: ActivityPub::VoteSerializer::NoteSerializer
|
|
|
|
has_one :object, serializer: ActivityPub::VoteSerializer::NoteSerializer
|
|
|
|
|
|
|
|
|
|
|
|
def id
|
|
|
|
def id
|
|
|
|
nil
|
|
|
|
[ActivityPub::TagManager.instance.uri_for(object.account), '#votes/', object.id, '/activity'].join
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def type
|
|
|
|
def type
|
|
|
|