mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-09-02 03:17:06 +02:00
Fixes #5873
- Notifications.getMultiple now takes an optional uid parameter - If a notification link in dropdown points to a topic and you're in said topic, you will be scrolled to the post instead of ajaxified to it.
This commit is contained in:
@@ -140,7 +140,7 @@ UserNotifications.getNotifications = function (nids, uid, callback) {
|
||||
function (next) {
|
||||
async.parallel({
|
||||
notifications: function (next) {
|
||||
notifications.getMultiple(nids, next);
|
||||
notifications.getMultiple(nids, uid, next);
|
||||
},
|
||||
hasRead: function (next) {
|
||||
db.isSortedSetMembers('uid:' + uid + ':notifications:read', nids, next);
|
||||
|
||||
Reference in New Issue
Block a user