Fix ActivityPub votes having nil IDs (#10151)

pull/10155/head
Eugen Rochko 2019-03-04 01:53:58 +01:00 committed by GitHub
parent 0e6998da3c
commit 1a7de769a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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