Return correct response when reply to a direct message is not direct itself
This commit is contained in:
parent
24bcc209f9
commit
d53fb55bb7
3 changed files with 171 additions and 167 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue