X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-abuse-list%2Fabuse-list-table.component.ts;h=d8470e927768e9054099987b18287c1a42ffee54;hb=HEAD;hp=a3a71ae2056bdf05caf5e9233870f2739a3a5e16;hpb=9397517a2618e121945273a7e8b1e511b20b5b99;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts b/client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts index a3a71ae20..d8470e927 100644 --- a/client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts +++ b/client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts @@ -175,7 +175,7 @@ export class AbuseListTableComponent extends RestTable implements OnInit { return Actor.IS_LOCAL(abuse.reporterAccount.host) } - protected reloadData () { + protected reloadDataInternal () { debugLogger('Loading data.') const options = { @@ -214,8 +214,8 @@ export class AbuseListTableComponent extends RestTable implements OnInit { abuse.truncatedCommentHtml = abuse.commentHtml = $localize`Deleted comment` } else { const truncated = truncate(abuse.comment.text, { length: 100 }) - abuse.truncatedCommentHtml = await this.markdownRenderer.textMarkdownToHTML(truncated, true) - abuse.commentHtml = await this.markdownRenderer.textMarkdownToHTML(abuse.comment.text, true) + abuse.truncatedCommentHtml = await this.markdownRenderer.textMarkdownToHTML({ markdown: truncated, withHtml: true }) + abuse.commentHtml = await this.markdownRenderer.textMarkdownToHTML({ markdown: abuse.comment.text, withHtml: true }) } } @@ -451,6 +451,6 @@ export class AbuseListTableComponent extends RestTable implements OnInit { } private toHtml (text: string) { - return this.markdownRenderer.textMarkdownToHTML(text) + return this.markdownRenderer.textMarkdownToHTML({ markdown: text }) } }