Add accounts and last_status to conversation read response

This commit is contained in:
Roman Chvanikov 2019-04-21 20:26:13 +07:00
commit 2662bea4e0
2 changed files with 22 additions and 4 deletions

View file

@ -346,6 +346,8 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
|> post("/api/v1/conversations/#{res_id}/read")
assert response = json_response(res_conn, 200)
assert length(response["accounts"]) == 2
assert response["last_status"]["id"] == direct.id
assert response["unread"] == false
# (vanilla) Mastodon frontend behaviour