minor bug fixes

This commit is contained in:
undefined committed 2025-04-21 05:07:50 +08:00
1 parent 2bfac40a8b
commit 401bb505c2
8 files changed
+18 -24

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@
"@zip.js/zip.js": "^2.7.60",
"adm-zip": "0.5.16",
"cac": "^6.7.14",
"cordis": "4.0.0-beta.1",
"cordis": "4.0.0-beta.2",
"csv-stringify": "^6.5.2",
"emoji-regex": "^10.4.0",
"emojis-list": "2.1.0",
+1 -1
View File
@@ -194,7 +194,7 @@ export async function apply(ctx: Context) {
await opcount.inc(op, id, periodSecs, maxOperations);
},
renderTitle(str: string) {
const name = this.ctx.setting.get('server.name');
const name = this.ctx.get('setting')?.get('server.name') || system.get('server.name');
if (this.UiContext.extraTitleContent) return `${this.UiContext.extraTitleContent} - ${this.translate(str)} - ${name}`;
return `${this.translate(str)} - ${name}`;
},