mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
updated all RDB.hget in posts to use getPostField. new post filters for retrieving and saving posts. made editPost saving synchronous.
This commit is contained in:
@@ -303,7 +303,7 @@ var RDB = require('./redis.js'),
|
||||
|
||||
pids.reverse();
|
||||
async.detectSeries(pids, function(pid, next) {
|
||||
RDB.hget('post:' + pid, 'deleted', function(err, deleted) {
|
||||
posts.getPostField(pid, 'deleted', function(deleted) {
|
||||
if (deleted === '0') next(true);
|
||||
else next(false);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user