switches username and preferred_username

This commit is contained in:
Christian Beutel
2025-06-24 17:55:59 +02:00
parent cb4f4f8125
commit 8bf8642703
39 changed files with 175 additions and 70 deletions

View File

@@ -275,7 +275,7 @@ export async function searchResultToLists(hits: Hits<ListSearchResult>): Promise
author: {
icon: h.author_avatar,
id: h.author,
username: h.author_name,
preferred_username: h.author_name,
} as any,
list_share_via_list: h.shares?.map(s => ({
permission: "view",

View File

@@ -477,7 +477,7 @@ export async function searchResultToTrailList(hits: Hits<TrailSearchResult>): Pr
isLocal: (h.domain?.length ?? 0) == 0,
id: h.author,
icon: h.author_avatar,
username: h.author_name,
preferred_username: h.author_name,
domain: h.domain,
} as any,
trail_share_via_trail: h.shares?.map(s => ({