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
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ def creation_cng(struct, params) do
|> validate_change(:recipient, fn
:recipient, recipient ->
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)