X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-instance%2Finstance.service.ts;h=2defffbbedbfcd9c940c2590034cbafd043ce04b;hb=cb0eda5602a21d1626a7face32de6153ed07b5f9;hp=70e02217893c3f5df6eecf9c1d2b19a552c0eea0;hpb=8ee25e17b88b970703f4df9e74cb4726bbffd837;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/shared-instance/instance.service.ts b/client/src/app/shared/shared-instance/instance.service.ts index 70e022178..2defffbbe 100644 --- a/client/src/app/shared/shared-instance/instance.service.ts +++ b/client/src/app/shared/shared-instance/instance.service.ts @@ -7,6 +7,11 @@ import { peertubeTranslate } from '@shared/core-utils/i18n' import { About } from '@shared/models' import { environment } from '../../../environments/environment' +export type AboutHTML = Pick + @Injectable() export class InstanceService { private static BASE_CONFIG_URL = environment.apiUrl + '/api/v1/config' @@ -39,7 +44,7 @@ export class InstanceService { } async buildHtml (about: About) { - const html = { + const html: AboutHTML = { terms: '', codeOfConduct: '', moderationInformation: '', @@ -51,7 +56,7 @@ export class InstanceService { } for (const key of Object.keys(html)) { - html[ key ] = await this.markdownService.textMarkdownToHTML(about.instance[ key ]) + html[key] = await this.markdownService.enhancedMarkdownToHTML({ markdown: about.instance[key] }) } return html