mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
clean up
This commit is contained in:
parent
3efd03800d
commit
ed2ddd2cca
1 changed files with 1 additions and 2 deletions
|
@ -527,8 +527,7 @@ router.get('/streaming', async ctx => {
|
||||||
router.get('(.*)', async ctx => {
|
router.get('(.*)', async ctx => {
|
||||||
const meta = await fetchMeta();
|
const meta = await fetchMeta();
|
||||||
let motd = ['Loading...'];
|
let motd = ['Loading...'];
|
||||||
// Check if meta.MOTD exists and is at least 1 in length
|
if (meta.customMOTD.length > 0) {
|
||||||
if (meta.customMOTD && meta.customMOTD.length > 0) {
|
|
||||||
motd = meta.customMOTD;
|
motd = meta.customMOTD;
|
||||||
}
|
}
|
||||||
await ctx.render('base', {
|
await ctx.render('base', {
|
||||||
|
|
Loading…
Add table
Reference in a new issue