tangled
alpha
login
or
join now
malpercio.dev
/
atbb
5
fork
atom
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
5
fork
atom
overview
issues
pulls
pipelines
fix(appview): scope modlog queries to forumDid (ATB-46)
malpercio.dev
3 weeks ago
ee0711a9
f5da364f
+5
-1
1 changed file
expand all
collapse all
unified
split
apps
appview
src
routes
admin.ts
+5
-1
apps/appview/src/routes/admin.ts
···
1030
1030
1031
1031
try {
1032
1032
const [countResult, actions] = await Promise.all([
1033
1033
-
ctx.db.select({ total: count() }).from(modActions),
1033
1033
+
ctx.db
1034
1034
+
.select({ total: count() })
1035
1035
+
.from(modActions)
1036
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
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))