Chat Moderation: use explicit `sender` and `recipient` fields
[akkoma] / test / web / admin_api / controllers / chat_controller_test.exs
index bca9d440d764dfdffa2024b3b38d3f1645a6e6ef..840f18aa2abcbbe75c7367040330745bd130f7df 100644 (file)
@@ -123,6 +123,9 @@ defmodule Pleroma.Web.AdminAPI.ChatControllerTest do
         |> json_response_and_validate_schema(200)
 
       assert result["id"] == to_string(chat.id)
+      assert %{} = result["sender"]
+      assert %{} = result["receiver"]
+      refute result["account"]
     end
   end
 end