Sort of bug fix and improvements for IDAA BB notifications and loading a post based on the URL param.
This commit is contained in:
@@ -31,6 +31,10 @@ let idaa_local_data_struct: key_val = {
|
||||
"58db22ee-4b0a-49a7-9f34-53d2ba85a84b",
|
||||
],
|
||||
|
||||
novi_archives_base_url: "https://www.idaa.org/idaa-archives",
|
||||
novi_bb_base_url: "https://www.idaa.org/idaa-bulletin-board",
|
||||
novi_meetings_base_url: "https://www.idaa.org/idaa-meetings",
|
||||
|
||||
'ds': {},
|
||||
|
||||
'idaa_cfg_json': {},
|
||||
@@ -158,6 +162,7 @@ let idaa_trig_template: key_val = {
|
||||
archive_id: false,
|
||||
archive_content_li: false,
|
||||
event_id: false,
|
||||
post_id: false,
|
||||
};
|
||||
export let idaa_trig: any = writable(idaa_trig_template);
|
||||
// console.log(`AE IDAA Stores - IDAA Trigger:`, idaa_trig);
|
||||
@@ -170,6 +175,7 @@ let idaa_prom_template: key_val = {
|
||||
archive_id: false,
|
||||
archive_content_li: false,
|
||||
event_id: false,
|
||||
post_id: false,
|
||||
};
|
||||
export let idaa_prom: any = writable(idaa_prom_template);
|
||||
// console.log(`AE IDAA Stores - IDAA Trigger:`, idaa_prom);
|
||||
|
||||
@@ -41,9 +41,9 @@ export async function load_ae_obj_id__post(
|
||||
ae_promises.load__post_obj = await api.get_ae_obj_id_crud({
|
||||
api_cfg: api_cfg,
|
||||
obj_type: 'post',
|
||||
obj_id: post_id, // NOTE: This is the FQDN, not normally the ID.
|
||||
use_alt_table: true, // NOTE: This will use the table_name_alt value instead of the table_name value in the API config.
|
||||
use_alt_base: false, // NOTE: This will use the base_name_alt value instead of the base_name value in the API config.
|
||||
obj_id: post_id,
|
||||
use_alt_table: true,
|
||||
use_alt_base: false,
|
||||
params: params,
|
||||
log_lvl: log_lvl
|
||||
})
|
||||
@@ -71,7 +71,7 @@ export async function load_ae_obj_id__post(
|
||||
console.log('ae_promises.load__post_obj:', ae_promises.load__post_obj);
|
||||
}
|
||||
|
||||
if (inc_comment_li) {
|
||||
if (inc_comment_li && ae_promises.load__post_obj) {
|
||||
// Load the comments for the post
|
||||
if (log_lvl) {
|
||||
console.log(`Need to load the comment list for the post now`);
|
||||
|
||||
@@ -37,9 +37,9 @@ export async function load_ae_obj_id__post_comment(
|
||||
ae_promises.load__post_comment_obj = await api.get_ae_obj_id_crud({
|
||||
api_cfg: api_cfg,
|
||||
obj_type: 'post_comment',
|
||||
obj_id: post_comment_id, // NOTE: This is the FQDN, not normally the ID.
|
||||
use_alt_table: false, // NOTE: This will use the table_name_alt value instead of the table_name value in the API config.
|
||||
use_alt_base: false, // NOTE: This will use the base_name_alt value instead of the base_name value
|
||||
obj_id: post_comment_id,
|
||||
use_alt_table: false,
|
||||
use_alt_base: false,
|
||||
params: params,
|
||||
log_lvl: log_lvl
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user