+
+ isOwner () {
+ if (!this.isUserLoggedIn()) return false
+
+ return this.videoChannel?.ownerAccount.userId === this.authService.getUser().id
+ }
+
+ isManageable () {
+ if (!this.videoChannel.isLocal) return false
+ if (!this.isUserLoggedIn()) return false
+
+ return this.isOwner() || this.authService.getUser().hasRight(UserRight.MANAGE_ANY_VIDEO_CHANNEL)
+ }
+
+ activateCopiedMessage () {
+ this.notifier.success($localize`Username copied`)
+ }
+
+ hasShowMoreDescription () {
+ return !this.channelDescriptionExpanded && this.channelDescriptionHTML.length > 100
+ }
+
+ showSupportModal () {
+ this.supportModal.show()
+ }
+
+ getAccountUrl () {
+ return [ '/a', this.videoChannel.ownerBy ]
+ }
+
+ private loadChannelVideosCount () {
+ this.videoService.getVideoChannelVideos({
+ videoChannel: this.videoChannel,
+ videoPagination: {
+ currentPage: 1,
+ itemsPerPage: 0
+ },
+ sort: '-publishedAt'
+ }).subscribe(res => this.channelVideosCount = res.total)
+ }
+
+ private loadOwnerBlockStatus () {
+ this.blocklist.getStatus({ accounts: [ this.ownerAccount.nameWithHostForced ], hosts: [ this.ownerAccount.host ] })
+ .subscribe(status => this.ownerAccount.updateBlockStatus(status))
+ }