1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-12-25 04:53:06 +00:00

Add comment for this mysterious behavior

This commit is contained in:
Mark Felder 2020-12-02 14:22:59 -06:00
parent 25fab7da69
commit 20a911f9f7

View file

@ -329,6 +329,8 @@ defp maybe_atomize(arg) when is_atom(arg), do: arg
defp maybe_atomize(arg) when is_binary(arg) do
chars = String.codepoints(arg)
# hack to make sure input like Pleroma.Mailer.Foo is formatted correctly
# for matching against values returned by Ecto
if "." in chars do
:"Elixir.#{arg}"
else