- this.serverService.getAbout()
- .subscribe(
- res => {
- this.shortDescription = res.instance.shortDescription
- this.descriptionHTML = this.markdownService.textMarkdownToHTML(res.instance.description)
- this.termsHTML = this.markdownService.textMarkdownToHTML(res.instance.terms)
- },
-
- () => this.notifier.error(this.i18n('Cannot get about information from server'))
- )
+ const { about, languages, categories, aboutHTML, descriptionElement, serverStats }: ResolverData = this.route.snapshot.data.instanceData
+
+ this.serverStats = serverStats
+
+ this.aboutHTML = aboutHTML
+ this.descriptionElement = descriptionElement
+
+ this.languages = languages
+ this.categories = categories
+
+ this.shortDescription = about.instance.shortDescription
+
+ this.serverConfig = this.serverService.getHTMLConfig()
+
+ this.route.data.subscribe(data => {
+ if (!data?.isContact) return
+
+ const prefill = this.route.snapshot.queryParams
+
+ this.contactAdminModal.show(prefill)
+ })
+
+ this.initialized = true