Commit 2d39d48c authored by Eugenij's avatar Eugenij

Fix failing tests due to not matching empty map value in the user's avatar

parent 070a3ab0
......@@ -149,7 +149,7 @@ def maybe_update_avatar(user, avatar_url) when is_list(avatar_url) do
User.avatar_url(user) == avatar_url ->
user
is_map(user.avatar) && user.avatar["source"] != "mfc" ->
is_map(user.avatar) && map_size(user.avatar) != 0 && user.avatar["source"] != "mfc" ->
user
true ->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment