aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/+about/about-instance/about-instance.component.ts9
-rw-r--r--client/src/app/shared/shared-instance/shared-instance.module.ts3
2 files changed, 1 insertions, 11 deletions
diff --git a/client/src/app/+about/about-instance/about-instance.component.ts b/client/src/app/+about/about-instance/about-instance.component.ts
index 2e0996429..5627aaa5a 100644
--- a/client/src/app/+about/about-instance/about-instance.component.ts
+++ b/client/src/app/+about/about-instance/about-instance.component.ts
@@ -42,7 +42,6 @@ export class AboutInstanceComponent implements OnInit, AfterViewChecked {
42 private lastScrollHash: string 42 private lastScrollHash: string
43 43
44 constructor ( 44 constructor (
45 private customMarkupService: CustomMarkupService,
46 private viewportScroller: ViewportScroller, 45 private viewportScroller: ViewportScroller,
47 private route: ActivatedRoute, 46 private route: ActivatedRoute,
48 private notifier: Notifier, 47 private notifier: Notifier,
@@ -74,8 +73,6 @@ export class AboutInstanceComponent implements OnInit, AfterViewChecked {
74 73
75 this.html = await this.instanceService.buildHtml(about) 74 this.html = await this.instanceService.buildHtml(about)
76 75
77 await this.injectDescription(about)
78
79 this.initialized = true 76 this.initialized = true
80 } 77 }
81 78
@@ -96,10 +93,4 @@ export class AboutInstanceComponent implements OnInit, AfterViewChecked {
96 copyToClipboard(link) 93 copyToClipboard(link)
97 this.notifier.success(link, $localize `Link copied`) 94 this.notifier.success(link, $localize `Link copied`)
98 } 95 }
99
100 private async injectDescription (about: About) {
101 const element = await this.customMarkupService.buildElement(about.instance.description)
102
103 this.descriptionWrapper.nativeElement.appendChild(element)
104 }
105} 96}
diff --git a/client/src/app/shared/shared-instance/shared-instance.module.ts b/client/src/app/shared/shared-instance/shared-instance.module.ts
index 77a64b538..5efb95a7d 100644
--- a/client/src/app/shared/shared-instance/shared-instance.module.ts
+++ b/client/src/app/shared/shared-instance/shared-instance.module.ts
@@ -13,8 +13,7 @@ import { InstanceService } from './instance.service'
13@NgModule({ 13@NgModule({
14 imports: [ 14 imports: [
15 SharedMainModule, 15 SharedMainModule,
16 NgbAccordionModule, 16 NgbAccordionModule
17 SharedCustomMarkupModule
18 ], 17 ],
19 18
20 declarations: [ 19 declarations: [