From 63d96c66c32c4e5869c7ccbf56e753e08fe46ffa Mon Sep 17 00:00:00 2001 From: rob Date: Tue, 4 Jan 2022 18:39:11 -0500 Subject: [PATCH] another author picture fix --- app/views/comment/components/comment-review.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/comment/components/comment-review.pug b/app/views/comment/components/comment-review.pug index 5237bd7..e16b548 100644 --- a/app/views/comment/components/comment-review.pug +++ b/app/views/comment/components/comment-review.pug @@ -4,7 +4,7 @@ mixin renderCommentReview (comment) header.uk-comment-header div(uk-grid).uk-grid-medium.uk-flex-middle .uk-width-auto - if comment.author.picture.small + if comment.author.picture && comment.author.picture.small img(src= `/image/${comment.author.picture.small._id}`).site-profile-picture.sb-small.uk-comment-avatar else img(src="/img/default-member.png").site-profile-picture.sb-small.uk-comment-avatar