Return correct response when reply to a direct message is not direct itself

This commit is contained in:
Sergey Suprunenko 2019-06-26 10:59:27 +00:00 committed by Haelwenn
commit d53fb55bb7
3 changed files with 171 additions and 167 deletions

View file

@ -121,7 +121,7 @@ defmodule Pleroma.Web.CommonAPITest do
})
Enum.each(["public", "private", "unlisted"], fn visibility ->
assert {:error, {:private_to_public, _}} =
assert {:error, "The message visibility must be direct"} =
CommonAPI.post(user, %{
"status" => "suya..",
"visibility" => visibility,