WIP! A BB-style forum, on the ATmosphere! We're still working... we'll be back soon when we have something to show off!
node typescript hono htmx atproto

fix(appview): scope modlog queries to forumDid (ATB-46)

+5 -1
+5 -1
apps/appview/src/routes/admin.ts
··· 1030 1030 1031 1031 try { 1032 1032 const [countResult, actions] = await Promise.all([ 1033 - ctx.db.select({ total: count() }).from(modActions), 1033 + ctx.db 1034 + .select({ total: count() }) 1035 + .from(modActions) 1036 + .where(eq(modActions.did, ctx.config.forumDid)), 1034 1037 ctx.db 1035 1038 .select({ 1036 1039 id: modActions.id, ··· 1044 1047 createdAt: modActions.createdAt, 1045 1048 }) 1046 1049 .from(modActions) 1050 + .where(eq(modActions.did, ctx.config.forumDid)) 1047 1051 .leftJoin(moderatorUser, eq(modActions.createdBy, moderatorUser.did)) 1048 1052 .leftJoin(subjectUser, eq(modActions.subjectDid, subjectUser.did)) 1049 1053 .orderBy(desc(modActions.createdAt))