Skip to content
Snippets Groups Projects
Unverified Commit 1a7de769 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix ActivityPub votes having nil IDs (#10151)

parent 0e6998da
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment