diff --git a/src/socket.io/user/picture.js b/src/socket.io/user/picture.js index 68d32680bf..21d2a453b8 100644 --- a/src/socket.io/user/picture.js +++ b/src/socket.io/user/picture.js @@ -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) {