More work on getting the BB ready for IDAA. Improved notification handling. Bug fixes related to creating posts and comments.

This commit is contained in:
Scott Idem
2024-11-22 14:07:27 -05:00
parent 1868adad99
commit 7ba11a104d
6 changed files with 61 additions and 13 deletions

View File

@@ -89,6 +89,7 @@ $: if ($idaa_trig.post_li) {
api_cfg: $ae_api,
for_obj_type: 'account',
for_obj_id: $idaa_slct.account_id,
inc_comment_li: true,
enabled: $idaa_loc.bb.qry__enabled,
hidden: $idaa_loc.bb.qry__hidden,
limit: $idaa_loc.bb.qry__limit,
@@ -97,6 +98,25 @@ $: if ($idaa_trig.post_li) {
log_lvl: log_lvl,
});
}
$: if ($idaa_trig.post_id) {
$idaa_trig.post_id = false;
if (log_lvl) {
console.log(`Triggered: $idaa_trig.post_id`);
}
$idaa_prom.load__post_obj = posts_func.load_ae_obj_id__post({
api_cfg: $ae_api,
post_id: $idaa_slct.post_id,
enabled: $idaa_loc.bb.qry__enabled,
hidden: $idaa_loc.bb.qry__hidden,
limit: $idaa_loc.bb.qry__limit,
inc_comment_li: true,
try_cache: true,
log_lvl: log_lvl,
});
}
</script>