Fix avatar: detect # placeholder and show initial instead

This commit is contained in:
Russell Ballestrini 2026-01-01 07:54:32 -05:00
parent 70c14e02da
commit 97ce3050ca

View file

@ -986,7 +986,7 @@ def render_detail_page(
block.className = 'post-block';
const avatarCol = document.createElement('div');
avatarCol.className = 'post-avatar-col';
if (img.src && !img.src.includes('undefined')) {{
if (img.src && !img.src.includes('undefined') && !img.src.endsWith('#') && img.getAttribute('src') !== '#') {{
const avatar = document.createElement('img');
avatar.className = 'post-avatar';
avatar.src = img.src;