|
|
@ -181,6 +181,16 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
|
|
|
|
assert %{"visibility" => "direct"} = status
|
|
|
|
assert %{"visibility" => "direct"} = status
|
|
|
|
assert status["url"] != direct.data["id"]
|
|
|
|
assert status["url"] != direct.data["id"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# User should be able to see his own direct message
|
|
|
|
|
|
|
|
res_conn =
|
|
|
|
|
|
|
|
build_conn()
|
|
|
|
|
|
|
|
|> assign(:user, user_one)
|
|
|
|
|
|
|
|
|> get("api/v1/timelines/direct")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[status] = json_response(res_conn, 200)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assert %{"visibility" => "direct"} = status
|
|
|
|
|
|
|
|
|
|
|
|
# Both should be visible here
|
|
|
|
# Both should be visible here
|
|
|
|
res_conn =
|
|
|
|
res_conn =
|
|
|
|
conn
|
|
|
|
conn
|
|
|
|