]>
Commit | Line | Data |
---|---|---|
1 | import { Component, OnInit } from '@angular/core' | |
2 | import { ServerService } from '@app/core' | |
3 | ||
4 | @Component({ | |
5 | templateUrl: './moderation.component.html', | |
6 | styleUrls: [ ] | |
7 | }) | |
8 | export class ModerationComponent implements OnInit { | |
9 | autoBlockVideosEnabled = false | |
10 | ||
11 | constructor ( | |
12 | private serverService: ServerService | |
13 | ) { } | |
14 | ||
15 | ngOnInit (): void { | |
16 | const serverConfig = this.serverService.getHTMLConfig() | |
17 | ||
18 | this.autoBlockVideosEnabled = serverConfig.autoBlacklist.videos.ofUsers.enabled | |
19 | } | |
20 | } |