Sort of bug fix and improvements for IDAA BB notifications and loading a post based on the URL param.
This commit is contained in:
@@ -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