mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 19:15:58 +01:00 
			
		
		
		
	more #559
This commit is contained in:
		| @@ -342,13 +342,13 @@ var RDB = require('./redis.js'), | ||||
| 		}); | ||||
| 	} | ||||
|  | ||||
| 	Posts.setPostField = function(pid, field, value, done) { | ||||
| 		RDB.hset('post:' + pid, field, value); | ||||
| 	Posts.setPostField = function(pid, field, value, callback) { | ||||
| 		RDB.hset('post:' + pid, field, value, callback); | ||||
| 		plugins.fireHook('action:post.setField', { | ||||
| 			'pid': pid, | ||||
| 			'field': field, | ||||
| 			'value': value | ||||
| 		}, done); | ||||
| 		}); | ||||
| 	} | ||||
|  | ||||
| 	Posts.getPostsByPids = function(pids, callback) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user