From 2989628b7913383b39ac34c7db8666a21f8e5037 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 4 Jun 2021 13:31:41 +0200 Subject: Use HTML config when possible --- client/src/app/+admin/moderation/moderation.component.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'client/src/app/+admin/moderation/moderation.component.ts') diff --git a/client/src/app/+admin/moderation/moderation.component.ts b/client/src/app/+admin/moderation/moderation.component.ts index 85665ea4f..44dd11c47 100644 --- a/client/src/app/+admin/moderation/moderation.component.ts +++ b/client/src/app/+admin/moderation/moderation.component.ts @@ -13,7 +13,8 @@ export class ModerationComponent implements OnInit { ) { } ngOnInit (): void { - this.serverService.getConfig() - .subscribe(config => this.autoBlockVideosEnabled = config.autoBlacklist.videos.ofUsers.enabled) + const serverConfig = this.serverService.getHTMLConfig() + + this.autoBlockVideosEnabled = serverConfig.autoBlacklist.videos.ofUsers.enabled } } -- cgit v1.2.3