mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
closes #1679
This commit is contained in:
@@ -114,14 +114,9 @@ function sendNotificationToPostOwner(data, uid, notification) {
|
||||
return;
|
||||
}
|
||||
|
||||
var path = nconf.get('relative_path') + '/topic/' + results.slug;
|
||||
if (parseInt(results.index, 10)) {
|
||||
path += '/' + (parseInt(results.index, 10) + 1);
|
||||
}
|
||||
|
||||
notifications.create({
|
||||
text: '[[' + notification + ', ' + results.username + ']]',
|
||||
path: path,
|
||||
path: nconf.get('relative_path') + '/topic/' + results.slug + '/' + results.index,
|
||||
uniqueId: 'post:' + data.pid,
|
||||
from: uid
|
||||
}, function(nid) {
|
||||
@@ -306,7 +301,7 @@ SocketPosts.flag = function(socket, pid, callback) {
|
||||
posts.getPidIndex(pid, next);
|
||||
},
|
||||
function(postIndex, next) {
|
||||
path += '/' + (parseInt(postIndex, 10) + 1);
|
||||
path += '/' + postIndex;
|
||||
groups.get('administrators', {}, next);
|
||||
},
|
||||
function(adminGroup, next) {
|
||||
|
||||
Reference in New Issue
Block a user