mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-23 17:00:24 +01:00
renamed event
This commit is contained in:
@@ -350,7 +350,7 @@ var bcrypt = require('bcryptjs'),
|
||||
User.setUserField(postData.uid, 'lastposttime', postData.timestamp);
|
||||
};
|
||||
|
||||
emitter.on('newpost', User.onNewPostMade);
|
||||
emitter.on('event:newpost', User.onNewPostMade);
|
||||
|
||||
User.addPostIdToUser = function(uid, pid, timestamp) {
|
||||
db.sortedSetAdd('uid:' + uid + ':posts', timestamp, pid);
|
||||
|
||||
Reference in New Issue
Block a user