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
@@ -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}`;
},