Apply suggestion to lib/pleroma/chat.ex
This commit is contained in:
parent
528ea779a6
commit
89a6c34081
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue