fix: remove user avatar on error out

This commit is contained in:
Julian Lam
2022-09-29 16:01:14 -04:00
parent ab157136aa
commit d68806db1b

View File

@@ -288,7 +288,7 @@ module.exports = function (utils, Benchpress, relative_path) {
let output = '';
if (userObj.picture) {
return '<img ' + attributes.join(' ') + ' src="' + userObj.picture + '" style="' + styles.join(' ') + '" />';
output += '<img ' + attributes.join(' ') + ' src="' + userObj.picture + '" style="' + styles.join(' ') + '" onError="this.remove();" />';
}
styles.push('background-color: ' + userObj['icon:bgColor'] + ';');