mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix ActivityPub votes having nil IDs (#10151)
This commit is contained in:
parent
0e6998da3c
commit
1a7de769a3
@ -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…
Reference in New Issue
Block a user