mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 17:15:35 +02:00
some checks for purge
This commit is contained in:
@@ -102,6 +102,10 @@ var async = require('async'),
|
||||
], callback);
|
||||
};
|
||||
|
||||
Posts.exists = function(pid, callback) {
|
||||
db.isSortedSetMember('posts:pid', pid, callback);
|
||||
};
|
||||
|
||||
Posts.getPostsByTid = function(tid, set, start, end, uid, reverse, callback) {
|
||||
Posts.getPidsFromSet(set, start, end, reverse, function(err, pids) {
|
||||
if(err) {
|
||||
|
||||
Reference in New Issue
Block a user