aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/+admin/moderation/moderation.component.ts
blob: 44dd11c47e79296526f6e68c8cb82602a2826f58 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                 
                                         


                                             
                
  
                                                    
                                

               
                                        


                     


                                                                                   
   
 
import { Component, OnInit } from '@angular/core'
import { ServerService } from '@app/core'

@Component({
  templateUrl: './moderation.component.html',
  styleUrls: [ ]
})
export class ModerationComponent implements OnInit {
  autoBlockVideosEnabled = false

  constructor (
    private serverService: ServerService
  ) { }

  ngOnInit (): void {
    const serverConfig = this.serverService.getHTMLConfig()

    this.autoBlockVideosEnabled = serverConfig.autoBlacklist.videos.ofUsers.enabled
  }
}