Node.js based forum software built for the modern web
mark register notif read when its rejected
barisusakli6ce65039703c
diff --git a/src/user/approval.js b/src/user/approval.jsindex 22c59c5938..07c93ce0a8 100644--- a/src/user/approval.js+++ b/src/user/approval.js@@ -120,7 +120,14 @@ module.exports = function(User) {}User.rejectRegistration = function(username, callback) {- removeFromQueue(username, callback);+ async.waterfall([+ function (next) {+ removeFromQueue(username, next);+ },+ function (next) {+ markNotificationRead(username, next);+ }+ ], callback);};function removeFromQueue(username, callback) {