Filter by hashtags and urls again

This commit is contained in:
2023-04-01 16:24:35 +02:00
parent d2f2214d65
commit c939b611a9
2 changed files with 6 additions and 1 deletions

View File

@ -199,6 +199,11 @@ export async function getPosts(since: string | null, limit: number) {
reject(err);
return;
}
if (rows.length === 0) {
// No need to check for tags
resolve([]);
return;
}
const postIdsParams = rows.map(() => '?').join(', ');
db.all(
`SELECT post_id, tags.url, tags.tag