core&ui: add setting provider

This commit is contained in:
undefined committed 2024-01-15 15:58:28 +08:00
1 parent 886fa6821d
commit 5d2ac74b04
10 files changed
+56 -28

No files matched your search

+1 -1
View File
@@ -146,7 +146,7 @@ export class HomeHandler extends Handler {
}
async get({ domainId }) {
const homepageConfig = this.domain.homepage || system.get('hydrooj.homepage');
const homepageConfig = this.ctx.setting.get('hydrooj.homepage');
const info = yaml.load(homepageConfig) as any;
const contents = [];
for (const column of info) {