X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Baccounts%2Faccounts.component.ts;h=0033fbf59f37c71bbf2fc563fcbb5f03384fd458;hb=cd940f40cb62fa105b14e1ce838e97f316c13c5c;hp=8983254928339990c8f76a43073809501580f636;hpb=fa66c9a601d69f6d57c956a3513e8bbed7ee9616;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+accounts/accounts.component.ts b/client/src/app/+accounts/accounts.component.ts index 898325492..0033fbf59 100644 --- a/client/src/app/+accounts/accounts.component.ts +++ b/client/src/app/+accounts/accounts.component.ts @@ -30,8 +30,6 @@ export class AccountsComponent implements OnInit, OnDestroy { links: ListOverflowItem[] = [] hideMenu = false - accountFollowerTitle = '' - accountVideosCount: number accountDescriptionHTML = '' accountDescriptionExpanded = false @@ -121,12 +119,6 @@ export class AccountsComponent implements OnInit, OnDestroy { this.notifier.success($localize`Username copied`) } - subscribersDisplayFor (count: number) { - if (count === 1) return $localize`1 subscriber` - - return $localize`${count} subscribers` - } - searchChanged (search: string) { const queryParams = { search } @@ -150,9 +142,11 @@ export class AccountsComponent implements OnInit, OnDestroy { } private async onAccount (account: Account) { - this.accountFollowerTitle = $localize`${account.followersCount} direct account followers` - - this.accountDescriptionHTML = await this.markdown.textMarkdownToHTML(account.description) + this.accountDescriptionHTML = await this.markdown.textMarkdownToHTML({ + markdown: account.description, + withEmoji: true, + withHtml: true + }) // After the markdown renderer to avoid layout changes this.account = account