+
+ private updateModerationActions () {
+ this.prependModerationActions = []
+
+ if (!this.authService.isLoggedIn()) return
+
+ this.authService.userInformationLoaded.subscribe(
+ () => {
+ if (this.isManageable()) return
+
+ // It's not our account, we can report it
+ this.prependModerationActions = [
+ {
+ label: $localize`Report`,
+ isHeader: true
+ },
+ {
+ label: $localize`Report this account`,
+ handler: () => this.showReportModal()
+ }
+ ]
+ }
+ )
+ }
+
+ private loadAccountVideosCount () {
+ this.videoService.getAccountVideos({
+ account: this.account,
+ videoPagination: {
+ currentPage: 1,
+ itemsPerPage: 0
+ },
+ sort: '-publishedAt'
+ }).subscribe(res => {
+ this.accountVideosCount = res.total
+ })
+ }
+
+ private loadAccountBlockStatus () {
+ this.blocklist.getStatus({ accounts: [ this.account.nameWithHostForced ], hosts: [ this.account.host ] })
+ .subscribe(status => this.account.updateBlockStatus(status))
+ }