mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-19 22:27:59 +01:00
correct usage of and
This commit is contained in:
parent
9679897930
commit
0f75c973aa
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ defmodule PhilomenaWeb.UserAttributionView do
|
||||||
def user_avatar(object, class \\ "avatar--100px") do
|
def user_avatar(object, class \\ "avatar--100px") do
|
||||||
user = object.user
|
user = object.user
|
||||||
|
|
||||||
if user and user.avatar do
|
if user && user.avatar do
|
||||||
img_tag(avatar_url_root() <> object.user.avatar, class: class)
|
img_tag(avatar_url_root() <> object.user.avatar, class: class)
|
||||||
else
|
else
|
||||||
anonymous_avatar(object, class)
|
anonymous_avatar(object, class)
|
||||||
|
|
Loading…
Reference in a new issue