From 23d473a56b022ff2294ea2d9e99e11551bb59a2c Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Mon, 10 Feb 2025 00:43:04 +1300 Subject: [PATCH] caps --- src/web/routes/guild.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/routes/guild.js b/src/web/routes/guild.js index a1bffef..081965f 100644 --- a/src/web/routes/guild.js +++ b/src/web/routes/guild.js @@ -120,7 +120,7 @@ as.router.get("/guild", defineEventHandler(async event => { // Self-service guild that hasn't been linked yet - needs a special page encouraging the link flow if (!row.space_id && row.autocreate === 0) { - const spaces = db.prepare("SELECT room_id, type, name, topic, avatar FROM invite LEFT JOIN guild_space ON invite.room_id = guild_space.space_id WHERE mxid = ? AND space_id IS NULL and type = 'm.space'").all(session.data.mxid) + const spaces = db.prepare("SELECT room_id, type, name, topic, avatar FROM invite LEFT JOIN guild_space ON invite.room_id = guild_space.space_id WHERE mxid = ? AND space_id IS NULL AND type = 'm.space'").all(session.data.mxid) return pugSync.render(event, "guild_not_linked.pug", {guild, guild_id, spaces}) }