remove http/https protocol

This commit is contained in:
Marie 2025-05-05 13:00:31 +00:00
parent da7dbd02f4
commit 581cc2b513

View file

@ -50,7 +50,7 @@ export class ApiInstanceMastodon {
const roles = await this.roleService.getUserPolicies(me?.id ?? null);
const response: MastodonEntity.Instance = {
uri: this.config.url,
uri: this.config.url.replace(/^https?:\/\//, ''),
title: this.meta.name || 'Sharkey',
description: this.meta.description || 'This is a vanilla Sharkey Instance. It doesn\'t seem to have a description.',
email: instance.email || '',