Skip to content

Node.js based forum software built for the modern web

appending relative path to user images for subfolder installs

Julian Lam1e0ec5dd47fc
diff --git a/src/user.js b/src/user.js
index 871c20ced8..0162e58cc5 100644
--- a/src/user.js
+++ b/src/user.js
@@ -209,6 +209,11 @@ var bcrypt = require('bcryptjs'),
} else {
user.hasPassword = false;
}
+
+ if (user.picture === user.uploadedpicture) {
+ // Append relative url
+ user.picture = nconf.get('relative_path') + user.picture;
+ }
}
});