import { Account, AccountService, Video, VideoChannel, VideoChannelService, VideoService } from '@app/shared/shared-main'
import { MiniatureDisplayOptions } from '@app/shared/shared-video-miniature'
import { NSFWPolicyType, VideoSortField } from '@shared/models'
+import { SimpleMemoize } from '@app/helpers'
@Component({
selector: 'my-account-video-channels',
})
)
.subscribe(async ({ videoChannel, videos, total }) => {
- this.channelsDescriptionHTML[videoChannel.id] = await this.markdown.textMarkdownToHTML(videoChannel.description)
+ this.channelsDescriptionHTML[videoChannel.id] = await this.markdown.textMarkdownToHTML({
+ markdown: videoChannel.description,
+ withEmoji: true,
+ withHtml: true
+ })
this.videoChannels.push(videoChannel)
this.loadMoreChannels()
}
+ @SimpleMemoize()
getVideoChannelLink (videoChannel: VideoChannel) {
return [ '/c', videoChannel.nameWithHost ]
}