perf: delete note content for list quety
This commit is contained in:
parent
d70fe1cf87
commit
fe792fa1c1
|
|
@ -13,5 +13,6 @@
|
|||
49392, 52186, 52055, 52282, 52270, 5825, 51351, 52233, 51308, 52388, 52280,
|
||||
52718, 52951, 52103, 52314, 52336, 52816, 52766, 52760, 660, 52728, 52683,
|
||||
51617, 53087, 53081, 52184, 43000, 53444, 53470, 50141, 52947, 51406, 53563,
|
||||
52800, 53637, 1361, 53518, 53584, 51803, 53387, 53731, 54169, 53657, 51540
|
||||
52800, 53637, 1361, 53518, 53584, 51803, 53387, 53731, 54169, 53657, 51540,
|
||||
54050
|
||||
]
|
||||
|
|
|
|||
|
|
@ -327,6 +327,8 @@
|
|||
"name": "Fiction",
|
||||
"description": "Experience a world of imagination through these fiction stories.",
|
||||
"notes": [
|
||||
"54050-7",
|
||||
"54050-6",
|
||||
"51585-1",
|
||||
"51139-2",
|
||||
"48910-4",
|
||||
|
|
|
|||
|
|
@ -41,7 +41,9 @@ export async function getFeed({
|
|||
|
||||
const list = await Promise.all(
|
||||
result.list.map(async (page: any) => {
|
||||
return await expandCrossbellNote(page, false, true)
|
||||
const expand = await expandCrossbellNote(page, false, true)
|
||||
delete expand.metadata?.content.content
|
||||
return expand
|
||||
}),
|
||||
)
|
||||
|
||||
|
|
@ -69,7 +71,9 @@ export async function getFeed({
|
|||
|
||||
const list = await Promise.all(
|
||||
result.list.map(async (page: any) => {
|
||||
return await expandCrossbellNote(page)
|
||||
const expand = await expandCrossbellNote(page)
|
||||
delete expand.metadata?.content.content
|
||||
return expand
|
||||
}),
|
||||
)
|
||||
|
||||
|
|
@ -135,7 +139,9 @@ export async function getFeed({
|
|||
|
||||
const list = await Promise.all(
|
||||
result?.data?.notes.map(async (page: any) => {
|
||||
return await expandCrossbellNote(page)
|
||||
const expand = await expandCrossbellNote(page)
|
||||
delete expand.metadata?.content.content
|
||||
return expand
|
||||
}),
|
||||
)
|
||||
|
||||
|
|
@ -199,7 +205,9 @@ export async function getFeed({
|
|||
page.stat.viewDetailCount / Math.max(Math.log10(secondAgo), 1)
|
||||
}
|
||||
|
||||
return await expandCrossbellNote(page)
|
||||
const expand = await expandCrossbellNote(page)
|
||||
delete expand.metadata?.content.content
|
||||
return expand
|
||||
}),
|
||||
)
|
||||
|
||||
|
|
@ -231,7 +239,14 @@ export async function getFeed({
|
|||
|
||||
const list = await Promise.all(
|
||||
result.list.map(async (page: any) => {
|
||||
return await expandCrossbellNote(page, false, false, searchKeyword)
|
||||
const expand = await expandCrossbellNote(
|
||||
page,
|
||||
false,
|
||||
false,
|
||||
searchKeyword,
|
||||
)
|
||||
delete expand.metadata?.content.content
|
||||
return expand
|
||||
}),
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue