import { Subscription } from 'rxjs'
import { ScreenService } from '@app/shared/misc/screen.service'
import { Notifier, ServerService } from '@app/core'
+import { UserService } from '@app/shared'
+import { LocalStorageService } from '@app/shared/misc/storage.service'
@Component({
selector: 'my-video-channel-videos',
protected serverService: ServerService,
protected route: ActivatedRoute,
protected authService: AuthService,
+ protected userService: UserService,
protected notifier: Notifier,
protected confirmService: ConfirmService,
protected screenService: ScreenService,
+ protected storageService: LocalStorageService,
private videoChannelService: VideoChannelService,
private videoService: VideoService
) {
super()
this.titlePage = this.i18n('Published videos')
+ this.displayOptions = {
+ ...this.displayOptions,
+ avatar: false
+ }
}
ngOnInit () {
const newPagination = immutableAssign(this.pagination, { currentPage: page })
return this.videoService
- .getVideoChannelVideos(this.videoChannel, newPagination, this.sort)
+ .getVideoChannelVideos(this.videoChannel, newPagination, this.sort, this.nsfwPolicy)
.pipe(
tap(({ total }) => {
this.titlePage = this.i18n(`{total, plural, =1 {Published 1 video} other {Published {{total}} videos}}`, { total })