mirror of
https://github.com/jtomchak/akkoma.git
synced 2025-01-19 14:16:05 +01:00
Apply suggestion to lib/pleroma/chat.ex
This commit is contained in:
parent
528ea779a6
commit
89a6c34081
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue