Much better searching triggers for recovery meetings (events).

This commit is contained in:
Scott Idem
2024-11-19 19:03:44 -05:00
parent bf29856f6b
commit 185709e67a
5 changed files with 217 additions and 128 deletions

View File

@@ -72,12 +72,17 @@ $: if ($idaa_trig.post_li) {
console.log(`Triggered: $idaa_trig.post_li`);
}
if ($idaa_loc.bb.qry__enabled !== 'all' || $idaa_loc.bb.qry__hidden !== 'all') {
// This may need to be rethought... For now things are cleared if query is anything but 'all' for enabled and hidden.
if ($idaa_loc.bb.qry__enabled !== 'all' || $idaa_loc.bb.qry__hidden !== 'all' || $idaa_loc.bb.qry__limit < 50) {
console.log(`Deleting disabled or hidden post.`);
let results = db_posts.post
.clear();
console.log(`Deleted ${results} disabled post.`);
console.log(`Deleting disabled or hidden post comments.`);
results = db_posts.comment
.clear();
console.log(`Deleted ${results} disabled post comments.`);
}
$idaa_prom.load__post_obj_li = posts_func.load_ae_obj_li__post({