mirror of
https://gitdab.com/cadence/out-of-your-element.git
synced 2025-09-10 04:12:50 +02:00
Fix web page exploding for unlinked guilds
Now it should at least show something, though features like invite won't work correctly. More work needed.
This commit is contained in:
parent
20b575c5f7
commit
0fe02dce22
4 changed files with 90 additions and 6 deletions
|
@ -96,7 +96,7 @@ as.router.get("/guild", defineEventHandler(async event => {
|
|||
// Unlinked guild
|
||||
if (!row) {
|
||||
const links = getChannelRoomsLinks(guild_id, [])
|
||||
return pugSync.render(event, "guild.pug", {guild_id, nonce, ...links})
|
||||
return pugSync.render(event, "guild.pug", {guild, guild_id, nonce, ...links})
|
||||
}
|
||||
|
||||
// Linked guild
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue