X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-instance%2Finstance.service.ts;h=3088f089967aa0ed8ddae880ffebcd67202bef3b;hb=54909304287f3c04dcfb39660be8ead57dc95440;hp=2defffbbedbfcd9c940c2590034cbafd043ce04b;hpb=d0fbc9fd0a29c37f3ff9b99030351e90b276fe7d;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 2defffbbe..3088f0899 100644 --- a/client/src/app/shared/shared-instance/instance.service.ts +++ b/client/src/app/shared/shared-instance/instance.service.ts @@ -3,6 +3,7 @@ import { catchError, map } from 'rxjs/operators' import { HttpClient } from '@angular/common/http' import { Injectable } from '@angular/core' import { MarkdownService, RestExtractor, ServerService } from '@app/core' +import { objectKeysTyped } from '@shared/core-utils' import { peertubeTranslate } from '@shared/core-utils/i18n' import { About } from '@shared/models' import { environment } from '../../../environments/environment' @@ -55,7 +56,7 @@ export class InstanceService { hardwareInformation: '' } - for (const key of Object.keys(html)) { + for (const key of objectKeysTyped(html)) { html[key] = await this.markdownService.enhancedMarkdownToHTML({ markdown: about.instance[key] }) }