this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

aaaaaaaaa works????

alice 0ae9b216 b9672550

+6 -6
+6 -6
src/label.ts
··· 53 53 }; 54 54 55 55 async function canPerformLabelOperation(did: string): Promise<boolean> { 56 - // const thirtyDaysAgo = new Date(Date.now() - 30 * 24 * 60 * 60 * 1000); 57 - // const query = server.db 58 - // .prepare<unknown[], { count: number }>(`SELECT COUNT(*) as count FROM labels WHERE uri = ? AND cts > ?`) 59 - // .get(did, thirtyDaysAgo.toISOString())!; 56 + const thirtyDaysAgo = new Date(Date.now() - 30 * 24 * 60 * 60 * 1000); 57 + const query = server.db 58 + .prepare<unknown[], { count: number }>(`SELECT COUNT(*) as count FROM labels WHERE uri = ? AND cts > ?`) 59 + .get(did, thirtyDaysAgo.toISOString())!; 60 60 61 - // return query.count < 2; 62 - return true; 61 + return query.count < 2; 62 + // return true; 63 63 } 64 64 65 65 async function handleDeleteLabels(did: string, labels: Set<string>) {