diff options
| author | Marie <github@yuugi.dev> | 2025-05-05 13:00:31 +0000 |
|---|---|---|
| committer | Marie <github@yuugi.dev> | 2025-05-05 13:00:31 +0000 |
| commit | 581cc2b5137d335d010a4b05b39cd5fdefcfd160 (patch) | |
| tree | 419352ca6425a157d18f6e635e6d0c336e8ef85b /packages/backend/src/server/api/mastodon/endpoints/instance.ts | |
| parent | merge: Added extra connection option and comment for statement_timeout - fix ... (diff) | |
| download | sharkey-581cc2b5137d335d010a4b05b39cd5fdefcfd160.tar.gz sharkey-581cc2b5137d335d010a4b05b39cd5fdefcfd160.tar.bz2 sharkey-581cc2b5137d335d010a4b05b39cd5fdefcfd160.zip | |
remove http/https protocol
Diffstat (limited to 'packages/backend/src/server/api/mastodon/endpoints/instance.ts')
| -rw-r--r-- | packages/backend/src/server/api/mastodon/endpoints/instance.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/server/api/mastodon/endpoints/instance.ts b/packages/backend/src/server/api/mastodon/endpoints/instance.ts index d6ee92b466..866a3acd44 100644 --- a/packages/backend/src/server/api/mastodon/endpoints/instance.ts +++ b/packages/backend/src/server/api/mastodon/endpoints/instance.ts @@ -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 || '', |