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=89f47db240cbc05a333bae3be50dfaac8879ded0;hpb=0e45e336f62a411b3c423be46d16252355c754d7;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 89f47db24..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({ markdown: about.instance[key] }) + html[key] = await this.markdownService.enhancedMarkdownToHTML({ markdown: about.instance[key] }) } return html