fixing error where sometimes the admin panel js was not loaded

This commit is contained in:
Julian Lam
2013-09-11 14:41:08 -04:00
parent 9fb1f8acf8
commit 9ebff816dc
6 changed files with 31 additions and 6 deletions

View File

@@ -590,7 +590,7 @@ var utils = require('./../public/src/utils.js'),
topics.getTopicField(tid, 'slug', function(err, slug) {
var message = '<strong>' + username + '</strong> made a new post';
notifications.create(message, 5, nconf.get('relative_path') + '/topic/' + slug + '#' + pid, 'notification_'+ Date.now(), function(nid) {
notifications.create(message, 5, nconf.get('relative_path') + '/topic/' + slug + '#' + pid, 'topic:'+ tid, function(nid) {
notifications.push(nid, followers);
});
});