mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +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