Skip to content

Node.js based forum software built for the modern web

updating profile fields to allow plugins (e.g. the write-api) to change a user's profile picture

Julian Lamc8e64ae93b99
diff --git a/src/emailer.js b/src/emailer.js
index e297985572..27c64c4986 100644
--- a/src/emailer.js
+++ b/src/emailer.js
@@ -90,6 +90,7 @@ var fallbackTransport;
},
function (results, next) {
var data = {
+ _raw: params,
to: email,
from: meta.config['email:from'] || 'no-reply@' + getHostname(),
from_name: meta.config['email:from_name'] || 'NodeBB',
diff --git a/src/user/profile.js b/src/user/profile.js
index 631d8d8f09..8b2a83f152 100644
--- a/src/user/profile.js
+++ b/src/user/profile.js
@@ -13,7 +13,7 @@ var plugins = require('../plugins');
module.exports = function(User) {
User.updateProfile = function(uid, data, callback) {
- var fields = ['username', 'email', 'fullname', 'website', 'location', 'groupTitle', 'birthday', 'signature', 'aboutme'];
+ var fields = ['username', 'email', 'fullname', 'website', 'location', 'groupTitle', 'birthday', 'signature', 'aboutme', 'picture', 'uploadedpicture'];
plugins.fireHook('filter:user.updateProfile', {uid: uid, data: data, fields: fields}, function(err, data) {
if (err) {