From 3bb4a4ce56aa6ee2dd985cee4183f953e9b07790 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Tue, 31 Mar 2020 11:45:09 -0400 Subject: [PATCH] whoops --- lib/philomena_web/views/user_attribution_view.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/philomena_web/views/user_attribution_view.ex b/lib/philomena_web/views/user_attribution_view.ex index 1b8d1373..2f930749 100644 --- a/lib/philomena_web/views/user_attribution_view.ex +++ b/lib/philomena_web/views/user_attribution_view.ex @@ -55,11 +55,11 @@ defmodule PhilomenaWeb.UserAttributionView do def user_avatar(%{user: %{avatar: nil}} = object, class), do: anonymous_avatar(object.user.name, class) - def user_avatar(object, class) do + def user_avatar(%{user: %{avatar: avatar}}, class) do class = Enum.join(["image-constrained", class], " ") content_tag :div, class: class do - user_avatar_url(object) + img_tag(avatar_url_root() <> "/" <> avatar) end end