diff options
| author | Marie <github@yuugi.dev> | 2025-05-05 13:03:39 +0000 |
|---|---|---|
| committer | Marie <github@yuugi.dev> | 2025-05-05 13:03:39 +0000 |
| commit | e2be44fb99f567a1169e4dd6929ea634e1e0cf03 (patch) | |
| tree | 6d0f4f651a41fbb8abbcc05aa104aa5bb843375b /packages/backend/src/server/api/mastodon | |
| parent | remove http/https protocol (diff) | |
| download | sharkey-e2be44fb99f567a1169e4dd6929ea634e1e0cf03.tar.gz sharkey-e2be44fb99f567a1169e4dd6929ea634e1e0cf03.tar.bz2 sharkey-e2be44fb99f567a1169e4dd6929ea634e1e0cf03.zip | |
change regex to include a zero-length match
Diffstat (limited to 'packages/backend/src/server/api/mastodon')
| -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 866a3acd44..7ed8d52313 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.replace(/^https?:\/\//, ''), + 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 || '', |