diff --git a/src/lib/ae_posts/ae_posts__post.ts b/src/lib/ae_posts/ae_posts__post.ts
index 1d826aef..3cc44db3 100644
--- a/src/lib/ae_posts/ae_posts__post.ts
+++ b/src/lib/ae_posts/ae_posts__post.ts
@@ -174,7 +174,7 @@ export async function load_ae_obj_li__post({
ae_promises.load__post_obj_li[i].post_comment_li = await load_ae_obj_li__post_comment({
api_cfg: api_cfg,
for_obj_type: 'post',
- for_obj_id: post_obj.post_id_random,
+ for_obj_id: post_obj.post_id,
enabled,
hidden,
limit,
@@ -213,7 +213,7 @@ export async function create_ae_obj__post({
api_cfg,
obj_type: 'post',
fields: {
- account_id_random: account_id,
+ account_id: account_id,
...data_kv
},
params,
@@ -358,7 +358,7 @@ export async function qry__post({
const search_query: any = { and: [] };
if (account_id) {
- search_query.and.push({ field: 'account_id_random', op: 'eq', value: account_id });
+ search_query.and.push({ field: 'account_id', op: 'eq', value: account_id });
}
if (qry_str) {
@@ -431,7 +431,7 @@ export async function qry__post({
ae_promises.load__post_obj_li[i].post_comment_li = await load_ae_obj_li__post_comment({
api_cfg: api_cfg,
for_obj_type: 'post',
- for_obj_id: post_obj.post_id_random,
+ for_obj_id: post_obj.post_id,
enabled,
hidden,
limit,
@@ -547,7 +547,7 @@ export async function process_ae_obj__post_props({
if (!obj.account_id) obj.account_id = account_id;
if (!obj.account_id_random) obj.account_id_random = account_id;
}
- obj.name = obj.title;
+ obj.name = obj.title;
const sort_val = (obj.sort ?? 0).toString().padStart(3, '0');
obj.tmp_sort_1 = `${obj.group ?? ''}_${obj.priority ? '1' : '0'}_${
sort_val
diff --git a/src/lib/ae_posts/ae_posts__post_comment.editable_fields.ts b/src/lib/ae_posts/ae_posts__post_comment.editable_fields.ts
index cb02b7a0..f07a7b8c 100644
--- a/src/lib/ae_posts/ae_posts__post_comment.editable_fields.ts
+++ b/src/lib/ae_posts/ae_posts__post_comment.editable_fields.ts
@@ -1,6 +1,6 @@
export const editable_fields__post_comment = [
'post_id',
- 'post_id_random',
+ // 'post_id_random',
'name',
'title',
'content',
diff --git a/src/lib/ae_posts/db_posts.ts b/src/lib/ae_posts/db_posts.ts
index 9b452265..3052e9c2 100644
--- a/src/lib/ae_posts/db_posts.ts
+++ b/src/lib/ae_posts/db_posts.ts
@@ -14,12 +14,9 @@ import type { key_val } from '$lib/stores/ae_stores';
*/
export interface Post {
id: string;
- // id_random: string;
post_id: string;
- // post_id_random: string;
account_id: string;
- // account_id_random: string;
person_id?: null | string;
external_person_id?: null | string; // For IDAA this is the Novi UUID
@@ -78,12 +75,9 @@ export interface Post {
*/
export interface Post_Comment {
id: string;
- // id_random: string;
post_comment_id: string;
- // post_comment_id_random: string;
post_id: string;
- // post_id_random: string;
external_person_id?: null | string; // For IDAA this is the Novi UUID
@@ -114,6 +108,7 @@ export interface Post_Comment {
tmp_sort_2?: null | string;
// Additional fields for convenience (database views)
+ account_id: string;
}
// Updated 2026-02-05
diff --git a/src/lib/types/ae_types.ts b/src/lib/types/ae_types.ts
index ddcb6d43..0909dcbd 100644
--- a/src/lib/types/ae_types.ts
+++ b/src/lib/types/ae_types.ts
@@ -740,9 +740,9 @@ export interface ae_DataStore extends ae_BaseObj {
*/
export interface ae_Post extends ae_BaseObj {
post_id: string;
- post_id_random: string;
+ // post_id_random: string;
account_id: string;
- account_id_random: string;
+ // account_id_random: string;
title: string;
content: string;
@@ -762,8 +762,9 @@ export interface ae_Post extends ae_BaseObj {
*/
export interface ae_PostComment extends ae_BaseObj {
post_comment_id: string;
- post_comment_id_random: string;
- post_id_random: string;
+ // post_comment_id_random: string;
+ post_id: string;
+ // post_id_random: string;
content: string;
anonymous: boolean;
@@ -787,7 +788,7 @@ export interface ae_Page extends ae_BaseObj {
/**
* Archive - A collection of archival content
- * Related Files:
+ * Related Files:
* - src/lib/ae_archives/db_archives.ts (Dexie Interface)
* - src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte (View)
*/
diff --git a/src/routes/core/people/[person_id]/+page.svelte b/src/routes/core/people/[person_id]/+page.svelte
index 045d40e5..e6d5091c 100644
--- a/src/routes/core/people/[person_id]/+page.svelte
+++ b/src/routes/core/people/[person_id]/+page.svelte
@@ -107,18 +107,18 @@
log_lvl: 1
});
// Filter users that don't have a person_id linked
- // NOTE: The backend might return person_id or person_id_random
- available_users = all_users.filter(u => !u.person_id_random && !u.person_id);
+ // NOTE: The backend might return person_id or person_id
+ available_users = all_users.filter(u => !u.person_id && !u.person_id);
loading_users = false;
}
- async function handle_link_user(user_id_random: string) {
+ async function handle_link_user(user_id: string) {
if (!confirm('Link this person to this user account?')) return;
const result = await update_ae_obj__person({
api_cfg: $ae_api,
person_id: $slct.person_id,
- data_kv: { user_id_random },
+ data_kv: { user_id },
log_lvl: 1
});
@@ -134,7 +134,7 @@
const result = await update_ae_obj__person({
api_cfg: $ae_api,
person_id: $slct.person_id,
- data_kv: { user_id_random: null },
+ data_kv: { user_id: null },
log_lvl: 1
});
}
@@ -252,7 +252,7 @@
Linked User ID
-{$lq__person_obj.user_id_random}
+{$lq__person_obj.user_id}
Username: {$lq__person_obj.username || '--'}