feat: add user data to action:user.removeUploadedPicture

v1.18.x
Barış Soner Uşaklı 4 years ago
parent 9542ef1285
commit 962446a5ac

@ -53,7 +53,11 @@ module.exports = function (SocketUser) {
// if current picture is uploaded picture, reset to user icon
picture: userData.uploadedpicture === userData.picture ? '' : userData.picture,
});
plugins.fireHook('action:user.removeUploadedPicture', { callerUid: socket.uid, uid: data.uid });
plugins.fireHook('action:user.removeUploadedPicture', {
callerUid: socket.uid,
uid: data.uid,
user: userData,
});
};
SocketUser.getProfilePictures = async function (socket, data) {

Loading…
Cancel
Save