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