fix nickname in welcome message

This commit is contained in:
alyssa rose 2021-04-11 16:40:01 +01:00
parent b221d77a6d
commit 3c1e9a4dea
1 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,7 @@ defp do_post(%User{} = sender, %User{nickname: nickname}, message)
sender, sender,
%{ %{
visibility: "direct", visibility: "direct",
status: "@#{nickname}\n#{message}" status: "Hi @#{nickname}, welcome to rainy.pizza!"
} }
) )
end end
@ -42,6 +42,7 @@ defp fetch_sender(nickname) when is_binary(nickname) do
defp fetch_sender(_), do: nil defp fetch_sender(_), do: nil
defp welcome_message do defp welcome_message do
# This is not used
Config.get([:welcome, :direct_message, :message], nil) Config.get([:welcome, :direct_message, :message], nil)
end end
end end