I have the new BB Posts working well for IDAA now. NOTE: I intentionally split the API calls that are triggered on layout and page loads.
This commit is contained in:
@@ -98,6 +98,10 @@ export async function load_ae_obj_id__journal(
|
||||
if (log_lvl) {
|
||||
console.log('ae_promises.load__journal_obj:', ae_promises.load__journal_obj);
|
||||
}
|
||||
if (!ae_promises.load__journal_obj) {
|
||||
console.log(`ERROR: Journals - Journal - The journal with ID ${journal_id} was not found.`);
|
||||
return ae_promises.load__journal_obj; // Return null if the journal was not found
|
||||
}
|
||||
|
||||
if (inc_entry_li) {
|
||||
// Load the entries for the journal
|
||||
|
||||
@@ -95,6 +95,10 @@ export async function load_ae_obj_id__post(
|
||||
if (log_lvl) {
|
||||
console.log('ae_promises.load__post_obj:', ae_promises.load__post_obj);
|
||||
}
|
||||
if (!ae_promises.load__post_obj) {
|
||||
console.log(`ERROR: Posts - Post - The post with ID ${post_id} was not found.`);
|
||||
return ae_promises.load__post_obj; // Return null if the post was not found
|
||||
}
|
||||
|
||||
if (inc_comment_li) {
|
||||
// Load the comments for the post
|
||||
@@ -109,7 +113,7 @@ export async function load_ae_obj_id__post(
|
||||
hidden: hidden, // all, hidden, not_hidden
|
||||
limit: limit, // Limit for the comments
|
||||
offset: offset,
|
||||
params: {qry__enabled: 'all', qry__limit: 25},
|
||||
params: params,
|
||||
try_cache: try_cache,
|
||||
log_lvl: log_lvl
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user