Skip to content

Node.js based forum software built for the modern web

fix: output span in buildAvatar helper instead of div

Julian Lam69fae1a7e404
diff --git a/public/src/modules/helpers.js b/public/src/modules/helpers.js
index 04b23f67f8..286327e10d 100644
--- a/public/src/modules/helpers.js
+++ b/public/src/modules/helpers.js
@@ -313,7 +313,7 @@
}
styles.push('background-color: ' + userObj['icon:bgColor'] + ';');
- return '<div ' + attributes.join(' ') + ' style="' + styles.join(' ') + '">' + userObj['icon:text'] + '</div>';
+ return '<span ' + attributes.join(' ') + ' style="' + styles.join(' ') + '">' + userObj['icon:text'] + '</span>';
}
function register() {