merge: remove http/https protocol in uri on masto api (!980)

View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/980

Closes #1046

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: dakkar <dakkar@thenautilus.net>
This commit is contained in:
Marie 2025-05-06 08:33:19 +00:00
commit 216ab3aea7

View file

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