This commit is contained in:
jusax23 2023-03-20 21:13:33 +01:00
parent 065a693a61
commit 0b366d41cf
Signed by: jusax23
GPG key ID: 499E2AA870C1CD41
2 changed files with 4 additions and 3 deletions

View file

@ -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;
});

View file

@ -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<void>])[] = [
["users", async (req: Request, res: Response) => {
@ -46,7 +47,7 @@ var Methods: ([string, (req: Request, res: Response) => Promise<void>])[] = [
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;
});