Skip to content

Node.js based forum software built for the modern web

fix mark topic notifications read on enter

barisusakli793a0a6772ac
diff --git a/src/user/notifications.js b/src/user/notifications.js
index 7be91bf168..6e65d37649 100644
--- a/src/user/notifications.js
+++ b/src/user/notifications.js
@@ -223,7 +223,7 @@ var async = require('async'),
value = value ? value.toString() : '';
nids = notifications.filter(function(notification) {
- return notification && notification[field] === value;
+ return notification && notification[field] && notification[field].toString() === value;
}).map(function(notification) {
return notification.nid;
});