Skip to content

Commit 5b00371

Browse files
committed
do not load empty avatar urls
1 parent 93cb37b commit 5b00371

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/components/meh-comments/meh-comments.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ export class MehComments {
340340
return (
341341
<div class={`comment status-${comment.status}`} data-comment-id={comment.id}>
342342
<img
343-
src={comment.avatar ?? this.getAvatarUrl(comment.avatar_id)}
343+
src={comment.avatar && comment.avatar.trim() !== '' ? comment.avatar : this.getAvatarUrl(comment.avatar_id)}
344344
alt="Avatar"
345345
class="avatar"
346346
onError={(e) => {

0 commit comments

Comments
 (0)