Fix followed topic notifications going to the last unread post

Regression introduced in 1b34ebe230.

Bug originally reported in #4469.
This commit is contained in:
Ben Lubar
2016-11-10 17:55:50 -06:00
parent e6c9c89342
commit e151916f1a
3 changed files with 74 additions and 3 deletions

View File

@@ -464,7 +464,7 @@ var utils = require('../public/src/utils');
notifications[modifyIndex].bodyShort = '[[' + mergeId + '_multiple, ' + usernames[0] + ', ' + (numUsers - 1) + titleEscaped + ']]';
}
notifications[modifyIndex].path = set[0].path;
notifications[modifyIndex].path = set[set.length - 1].path;
break;
case 'new_register':