Apply suggestion to lib/pleroma/chat.ex

This commit is contained in:
lain 2020-04-29 18:14:34 +00:00
parent 528ea779a6
commit 89a6c34081

View File

@ -29,7 +29,7 @@ defmodule Pleroma.Chat do
|> validate_change(:recipient, fn |> validate_change(:recipient, fn
:recipient, recipient -> :recipient, recipient ->
case User.get_cached_by_ap_id(recipient) do case User.get_cached_by_ap_id(recipient) do
nil -> [recipient: "must a an existing user"] nil -> [recipient: "must be an existing user"]
_ -> [] _ -> []
end end
end) end)