Node.js based forum software built for the modern web
fix: use root context if buildAvatar context is undefined
Julian Lamb4c0b32b26c0
diff --git a/public/src/modules/helpers.js b/public/src/modules/helpers.jsindex f918f5a258..14e985f1e9 100644--- a/public/src/modules/helpers.js+++ b/public/src/modules/helpers.js@@ -284,6 +284,11 @@* component: overrides the default component (optional, default none)*/+ // Try to use root context if passed-in userObj is undefined+ if (!userObj) {+ userObj = this;+ }+var attributes = ['alt="' + userObj.username + '"','title="' + userObj.username + '"',