about summary refs log tree commit diff
path: root/app/serializers/rest
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-10-12 01:36:51 +0200
committerGitHub <noreply@github.com>2018-10-12 01:36:51 +0200
commit8fd2cc54c19fa69a6bfcd06d61d7ab7774215100 (patch)
tree6901ad6d4cadd30e130a9a7ee80dde3f340bf877 /app/serializers/rest
parentef43f1d2caf874ecc6d82f44e9f2bab5a6e64144 (diff)
Fix type of conversation ID in conversations API (#8961)
Diffstat (limited to 'app/serializers/rest')
-rw-r--r--app/serializers/rest/conversation_serializer.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/serializers/rest/conversation_serializer.rb b/app/serializers/rest/conversation_serializer.rb
index 08cea47d2..884253f89 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