From 8fd2cc54c19fa69a6bfcd06d61d7ab7774215100 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 12 Oct 2018 01:36:51 +0200 Subject: [PATCH] Fix type of conversation ID in conversations API (#8961) --- app/serializers/rest/conversation_serializer.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/serializers/rest/conversation_serializer.rb b/app/serializers/rest/conversation_serializer.rb index 08cea47d225..884253f8937 100644 --- a/app/serializers/rest/conversation_serializer.rb +++ b/app/serializers/rest/conversation_serializer.rb @@ -4,4 +4,8 @@ class REST::ConversationSerializer < ActiveModel::Serializer attribute :id has_many :participant_accounts, key: :accounts, serializer: REST::AccountSerializer has_one :last_status, serializer: REST::StatusSerializer + + def id + object.id.to_s + end end