fixes
This commit is contained in:
parent
065a693a61
commit
0b366d41cf
2 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue