diff --git a/src/api/acts/client.ts b/src/api/acts/client.ts index 313208d..293ea86 100644 --- a/src/api/acts/client.ts +++ b/src/api/acts/client.ts @@ -164,7 +164,7 @@ export const listPublicRooms = { func: async (client: Client, data: any, aws: (code: string, data: any) => void) => { let req = await select([ rooms.name, - rooms.publvisibilityic, + rooms.visibility, rooms.title, rooms.description, rooms.icon @@ -178,7 +178,7 @@ export const listPublicRooms = { let description = d[rooms.description]; let icon = d[rooms.icon]; if (name != null && visibility != null && title != null && description != null && icon != null) { - return { name, visibility, title, description, icon }; + return { name, server: selfTag.tag, visibility, title, description, icon }; } return null; }); diff --git a/src/api/get.ts b/src/api/get.ts index 3e63343..7244f63 100644 --- a/src/api/get.ts +++ b/src/api/get.ts @@ -6,6 +6,7 @@ import { accounts, db, rooms } from "../sys/db.js"; import { error, logList } from "../sys/log.js"; import { getSettings, SETTINGS } from "../sys/settings.js"; import logHTML from "../html/log.js"; +import { selfTag } from "../sys/selfTag.js"; var Methods: ([string, (req: Request, res: Response) => Promise])[] = [ ["users", async (req: Request, res: Response) => { @@ -46,7 +47,7 @@ var Methods: ([string, (req: Request, res: Response) => Promise])[] = [ let description = d[rooms.description]; let icon = d[rooms.icon]; if (name != null && title != null && description != null && icon != null) { - return { name, title, description, icon }; + return { name, server: selfTag.tag, title, description, icon }; } return null; });