From bb846def85d23ac59db463b37ee50c128fef4e4b Mon Sep 17 00:00:00 2001 From: 3nprob <3nprob@3nprob> Date: Fri, 8 Oct 2021 16:37:24 +0900 Subject: [PATCH] fix deleted account avatar --- templates/gallery.pug | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/gallery.pug b/templates/gallery.pug index 055abec..e6e182e 100644 --- a/templates/gallery.pug +++ b/templates/gallery.pug @@ -6,8 +6,11 @@ mixin commentbox(comment) div(class='Meta') div(class='GalleryComment-avatar-bar') div(class='avatar') - a(title='View profile of '+comment.account.username, href='/user/'+comment.account.username) - span(title=comment.account.username, style='background-image: url("' + util.proxyURL(comment.account.avatar) + '");') + if comment.account.username === '[deleted]' + span(title='[deleted]') + else + a(title='View profile of '+comment.account.username, href='/user/'+comment.account.username) + span(title=comment.account.username, style='background-image: url("' + util.proxyURL(comment.account.avatar) + '");') a(class='author-name', title='View profile of '+comment.account.username, href='/user/'+comment.account.username) #{comment.account.username} span(class="date", title=comment.created_at) span(class="delimiter") •