diff --git a/lib/philomena_web/views/user_attribution_view.ex b/lib/philomena_web/views/user_attribution_view.ex index 809446e1..619556b7 100644 --- a/lib/philomena_web/views/user_attribution_view.ex +++ b/lib/philomena_web/views/user_attribution_view.ex @@ -19,7 +19,7 @@ defmodule PhilomenaWeb.UserAttributionView do def user_avatar(object, class \\ "avatar--100px") do user = object.user - if user and user.avatar do + if user && user.avatar do img_tag(avatar_url_root() <> object.user.avatar, class: class) else anonymous_avatar(object, class)