File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1+ import { eq , not } from "drizzle-orm" ;
12import { escape } from "es-toolkit" ;
23import { Hono } from "hono" ;
34import { Layout } from "../../components/Layout.tsx" ;
45import db from "../../db.ts" ;
6+ import { HOLLO_RELAY_ACTOR_ID } from "../../entities/relay.ts" ;
7+ import { accountOwners } from "../../schema.ts" ;
58import { renderCustomEmojis } from "../../text.ts" ;
69
710const homePage = new Hono ( ) . basePath ( "/" ) ;
@@ -10,6 +13,7 @@ homePage.get("/", async (c) => {
1013 const credential = await db . query . credentials . findFirst ( ) ;
1114 if ( credential == null ) return c . redirect ( "/setup" ) ;
1215 const owners = await db . query . accountOwners . findMany ( {
16+ where : not ( eq ( accountOwners . id , HOLLO_RELAY_ACTOR_ID ) ) ,
1317 with : { account : true } ,
1418 } ) ;
1519 if ( owners . length < 1 ) return c . redirect ( "/accounts" ) ;
You can’t perform that action at this time.
0 commit comments