From 1e0ec5dd47fcf16f20db86bffaaac085c5a4df00 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 12 Mar 2014 16:11:33 -0400 Subject: [PATCH] appending relative path to user images for subfolder installs --- src/user.js | 5 +++++ 1 file changed, 5 insertions(+) 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; + } } });