switches username and preferred_username
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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 => ({
|
||||
|
||||
Reference in New Issue
Block a user