mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-31 19:15:58 +01:00
closes #976
This commit is contained in:
@@ -9,6 +9,7 @@ var db = require('./database'),
|
||||
categories = require('./categories'),
|
||||
plugins = require('./plugins'),
|
||||
meta = require('./meta'),
|
||||
emitter = require('./emitter'),
|
||||
|
||||
async = require('async'),
|
||||
path = require('path'),
|
||||
@@ -68,9 +69,7 @@ var db = require('./database'),
|
||||
|
||||
db.incrObjectField('global', 'postCount');
|
||||
|
||||
topics.onNewPostMade(tid, postData.pid, timestamp);
|
||||
categories.onNewPostMade(uid, tid, postData.pid, timestamp);
|
||||
user.onNewPostMade(uid, tid, postData.pid, timestamp);
|
||||
emitter.emit('newpost', postData);
|
||||
|
||||
plugins.fireHook('filter:post.get', postData, next);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user