initial support nip-23

This commit is contained in:
Ren Amamiya
2023-05-15 09:11:31 +07:00
parent 2b4d11182a
commit 180e31d1bd
9 changed files with 222 additions and 27 deletions

View File

@@ -132,7 +132,7 @@ export async function getLongNotes(
const notes: any = { data: null, nextCursor: 0 };
const query: any = await db.select(
`SELECT * FROM notes WHERE created_at <= "${time}" AND kind = 30023 GROUP BY parent_id ORDER BY created_at DESC LIMIT "${limit}" OFFSET "${offset}";`,
`SELECT * FROM notes WHERE created_at <= "${time}" AND kind = 30023 ORDER BY created_at DESC LIMIT "${limit}" OFFSET "${offset}";`,
);
notes["data"] = query;