mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2025-01-18 03:22:52 +09:00
clean up
This commit is contained in:
parent
3efd03800d
commit
ed2ddd2cca
@ -527,8 +527,7 @@ router.get('/streaming', async ctx => {
|
||||
router.get('(.*)', async ctx => {
|
||||
const meta = await fetchMeta();
|
||||
let motd = ['Loading...'];
|
||||
// Check if meta.MOTD exists and is at least 1 in length
|
||||
if (meta.customMOTD && meta.customMOTD.length > 0) {
|
||||
if (meta.customMOTD.length > 0) {
|
||||
motd = meta.customMOTD;
|
||||
}
|
||||
await ctx.render('base', {
|
||||
|
Loading…
Reference in New Issue
Block a user