mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	closed #160
new build_title function to be called via socket also added categories.getCategoryField and refactored all calls to getTopicField to be error-first
This commit is contained in:
		| @@ -566,7 +566,7 @@ var utils = require('./../public/src/utils.js'), | ||||
| 	User.sendPostNotificationToFollowers = function(uid, tid, pid) { | ||||
| 		User.getUserField(uid, 'username', function(username) { | ||||
| 			RDB.smembers('followers:' + uid, function(err, followers) { | ||||
| 				topics.getTopicField(tid, 'slug', function(slug) { | ||||
| 				topics.getTopicField(tid, 'slug', function(err, slug) { | ||||
| 					var message = username + ' made a new post'; | ||||
|  | ||||
| 					notifications.create(message, 5, global.nconf.get('url') + 'topic/' + slug + '#' + pid, 'notification_'+ Date.now(), function(nid) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user