Rename files for consistency

This commit is contained in:
Cadence Ember
2026-08-04 11:43:11 +12:00
parent c8961a9bec
commit 50d5509c07
3 changed files with 3 additions and 3 deletions
+3 -3
View File
@@ -158,13 +158,13 @@ as.router.get("/guild", defineEventHandler(async event => {
// Permission problems // Permission problems
if (!guild_id || !guild || !managed.has(guild_id) || !row) { if (!guild_id || !guild || !managed.has(guild_id) || !row) {
return pugSync.render(event, "guild_access_denied.pug", {guild_id, row}) return pugSync.render(event, "guild-access-denied.pug", {guild_id, row})
} }
// Self-service guild that hasn't been linked yet - needs a special page encouraging the link flow // Self-service guild that hasn't been linked yet - needs a special page encouraging the link flow
if (!row.space_id && row.autocreate === 0) { if (!row.space_id && row.autocreate === 0) {
const spaces = session.data.mxid ? getInviteTargetSpaces(session.data.mxid) : [] const spaces = session.data.mxid ? getInviteTargetSpaces(session.data.mxid) : []
return pugSync.render(event, "guild_not_linked.pug", {guild, guild_id, spaces}) return pugSync.render(event, "guild-not-linked.pug", {guild, guild_id, spaces})
} }
const roles = guild.members?.find(m => m.user.id === botID)?.roles || [] const roles = guild.members?.find(m => m.user.id === botID)?.roles || []
@@ -191,7 +191,7 @@ as.router.get("/qr", defineEventHandler(async event => {
// Permission problems // Permission problems
if (!guild_id || !guild || !managed.has(guild_id) || !row) { if (!guild_id || !guild || !managed.has(guild_id) || !row) {
return pugSync.render(event, "guild_access_denied.pug", {guild_id, row}) return pugSync.render(event, "guild-access-denied.pug", {guild_id, row})
} }
const nonce = randomUUID() const nonce = randomUUID()