mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 18:46:01 +01:00
fixes in posttools and thread tools for hashes
This commit is contained in:
@@ -128,6 +128,10 @@ marked.setOptions({
|
||||
});
|
||||
}
|
||||
|
||||
Posts.setPostField = function(pid, field, value) {
|
||||
RDB.hset('post:' + pid, field, value);
|
||||
}
|
||||
|
||||
Posts.getPostFields = function(pid, fields, callback) {
|
||||
RDB.hmget('post:' + pid, fields, function(err, data) {
|
||||
if(err === null) {
|
||||
|
||||
Reference in New Issue
Block a user