fix: execute renotes query
This commit is contained in:
parent
e4bfde105b
commit
71bf3dc1d9
1 changed files with 7 additions and 1 deletions
|
@ -106,7 +106,13 @@ export default define(meta, paramDef, async (ps, user) => {
|
|||
let untilDate: number | undefined;
|
||||
while (foundPacked.length < ps.limit) {
|
||||
const foundNotes = (
|
||||
await execNotePaginationQuery({ ...ps, untilDate }, filter, 1)
|
||||
await execNotePaginationQuery(
|
||||
"renotes",
|
||||
{ ...ps, untilDate },
|
||||
filter,
|
||||
user?.id,
|
||||
1,
|
||||
)
|
||||
).slice(0, ps.limit * 1.5); // Some may filtered out by Notes.packMany, thus we take more than ps.limit.
|
||||
foundPacked.push(
|
||||
...(await Notes.packMany(foundNotes, user, { scyllaNote: true })),
|
||||
|
|
Loading…
Reference in a new issue