accountDescriptionHTML = ''
accountDescriptionExpanded = false
- prependModerationActions: DropdownAction<any>[]
+ prependModerationActions: DropdownAction<any>[] = []
private routeSub: Subscription
private async onAccount (account: Account) {
this.accountFollowerTitle = $localize`${account.followersCount} direct account followers`
- this.prependModerationActions = undefined
-
this.accountDescriptionHTML = await this.markdown.textMarkdownToHTML(account.description)
// After the markdown renderer to avoid layout changes
}
private updateModerationActions () {
+ this.prependModerationActions = []
+
if (!this.authService.isLoggedIn()) return
this.authService.userInformationLoaded.subscribe(
// It's not our account, we can report it
this.prependModerationActions = [
+ {
+ label: $localize`Report`,
+ isHeader: true
+ },
{
label: $localize`Report this account`,
handler: () => this.showReportModal()