ActivityPub-federated video streaming platform using P2P directly in your web browser
Hide description block if there's no description
Chocobozzza045cf484e0d
diff --git a/client/src/app/+about/about-instance/about-instance.resolver.ts b/client/src/app/+about/about-instance/about-instance.resolver.tsindex d462aa9dfb..ae330fd3d4 100644--- a/client/src/app/+about/about-instance/about-instance.resolver.ts+++ b/client/src/app/+about/about-instance/about-instance.resolver.ts@@ -1,10 +1,10 @@-import { forkJoin, Observable } from 'rxjs'-import { map, switchMap } from 'rxjs/operators'-import { Injectable, inject } from '@angular/core'+import { inject, Injectable } from '@angular/core'import { ServerService } from '@app/core'-import { About, ServerConfig, ServerStats } from '@peertube/peertube-models'-import { AboutHTML, InstanceService } from '@app/shared/shared-main/instance/instance.service'import { CustomMarkupService } from '@app/shared/shared-custom-markup/custom-markup.service'+import { AboutHTML, InstanceService } from '@app/shared/shared-main/instance/instance.service'+import { About, ServerConfig, ServerStats } from '@peertube/peertube-models'+import { forkJoin, Observable } from 'rxjs'+import { map, switchMap } from 'rxjs/operators'export type ResolverData = {serverConfig: ServerConfig@@ -55,7 +55,10 @@ export class AboutInstanceResolver {this.instanceService.buildTranslatedLanguages(about),this.instanceService.buildTranslatedCategories(about),this.instanceService.buildHtml(about),- this.customMarkupService.buildElement(about.instance.description)++ about.instance.description+ ? this.customMarkupService.buildElement(about.instance.description)+ : Promise.resolve({ rootElement: undefined })])}))