]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+admin/moderation/moderation.component.ts
Move to sass module
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / moderation / moderation.component.ts
index 85665ea4f9b23aa95f2a24b3e9af3693905d7446..44dd11c47e79296526f6e68c8cb82602a2826f58 100644 (file)
@@ -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
   }
 }