ChatController: Handle pagination.
[akkoma] / lib / pleroma / web / pleroma_api / views / chat_view.ex
index ee48385bf9ef49660f545c9be75e1937e8336468..7b8c6450a5c25febb4a1a855bb3e8b849f98b2b7 100644 (file)
@@ -9,7 +9,7 @@ defmodule Pleroma.Web.PleromaAPI.ChatView do
 
   def render("show.json", %{chat: %Chat{} = chat}) do
     %{
-      id: chat.id,
+      id: chat.id |> to_string(),
       recipient: chat.recipient,
       unread: chat.unread
     }