feat: use excludeCharacterId

This commit is contained in:
DIYgod 2023-05-19 22:58:50 +01:00
parent 49d7eb26cf
commit fe4ed39021
No known key found for this signature in database
1 changed files with 4 additions and 10 deletions

View File

@ -51,11 +51,8 @@ export async function getFeed({
limit,
cursor,
includeCharacter: true,
})
result.list = result.list.filter(
(note) => !filter.latest.includes(note.characterId),
)
excludeCharacterId: filter.latest,
} as any)
const list = await Promise.all(
result.list.map(async (page: any) => {
@ -307,11 +304,8 @@ export async function getFeed({
limit,
cursor,
includeCharacter: true,
})
result.list = result.list.filter(
(note) => !filter.latest.includes(note.characterId),
)
excludeCharacterId: filter.latest,
} as any)
const list = await Promise.all(
result.list.map(async (page: any) => {