mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-01 21:30:30 +01:00
feat: add user data to action:user.removeUploadedPicture
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user