The notifications to Post Commenters should be working now.

This commit is contained in:
Scott Idem
2025-08-11 18:34:58 -04:00
parent 6622fc4169
commit a4b3d3887f
2 changed files with 28 additions and 9 deletions

View File

@@ -70,6 +70,17 @@ let lq__post_comment_obj_li = $derived(liveQuery(async () => {
.sortBy('updated_on');
// .sortBy('title');
if ($idaa_slct.post_comment_obj_li && JSON.stringify($idaa_slct.post_comment_obj_li) !== JSON.stringify(results)) {
$idaa_slct.post_comment_obj_li = [...results];
if (log_lvl) {
console.log(`$idaa_slct.post_comment_obj_li = `, $idaa_slct.post_comment_obj_li);
}
} else {
if (log_lvl) {
console.log(`Post comment object list has not changed for post_id: ${$idaa_slct.post_id}`);
}
}
return results;
}));