core: allow homepage config injection

This commit is contained in:
undefined committed 2022-11-26 20:28:11 +08:00
1 parent 4f41c0ae56
commit a2ea3812df
5 files changed
+11 -16

No files matched your search

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