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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue