diff options
Diffstat (limited to 'client/src/app/+about/about-instance/about-instance.component.ts')
-rw-r--r-- | client/src/app/+about/about-instance/about-instance.component.ts | 9 |
1 files changed, 0 insertions, 9 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 | } |