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

@ -247,6 +247,7 @@ defmodule Pleroma.Web.CommonAPI do
res
else
{:private_to_public, true} -> {:error, "The message visibility must be direct"}
{:error, _} = e -> e
e -> {:error, e}
end