Fix ActivityPub votes having nil IDs (#10151)

th-downstream
Eugen Rochko 6 years ago committed by GitHub
parent 03b5da7b6f
commit 6056edf7a5

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

Loading…
Cancel
Save