mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-19 14:17:59 +01:00
whoops
This commit is contained in:
parent
1c12c010fa
commit
3bb4a4ce56
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue