mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-26 22:36:21 +01:00
Fix type of conversation ID in conversations API (#8961)
This commit is contained in:
parent
ef43f1d2ca
commit
8fd2cc54c1
@ -4,4 +4,8 @@ class REST::ConversationSerializer < ActiveModel::Serializer
|
|||||||
attribute :id
|
attribute :id
|
||||||
has_many :participant_accounts, key: :accounts, serializer: REST::AccountSerializer
|
has_many :participant_accounts, key: :accounts, serializer: REST::AccountSerializer
|
||||||
has_one :last_status, serializer: REST::StatusSerializer
|
has_one :last_status, serializer: REST::StatusSerializer
|
||||||
|
|
||||||
|
def id
|
||||||
|
object.id.to_s
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user