Move contact to organized by

And minor things

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-09-30 10:45:22 +02:00
parent 36cdcaa864
commit c8449a0693
5 changed files with 19 additions and 9 deletions

View File

@@ -105,13 +105,13 @@ export default class AboutInstance extends Vue {
if (this.isContactURL) {
return {
uri: this.config.contact,
text: this.urlToHostname(this.config.contact) || (this.$t("Contact") as string),
text: AboutInstance.urlToHostname(this.config.contact) || (this.$t("Contact") as string),
};
}
return null;
}
urlToHostname(url: string): string | null {
static urlToHostname(url: string): string | null {
try {
return new URL(url).hostname;
} catch (e) {