From 9a0e2bf1b6583c2c99df88a7fa5dcff74ce3cd45 Mon Sep 17 00:00:00 2001
From: ikasoba <57828948+ikasoba@users.noreply.github.com>
Date: Sun, 24 Dec 2023 00:04:07 +0900
Subject: [PATCH] =?UTF-8?q?fix:=20`/share`=E3=81=8B=E3=82=89`/{=E5=9B=BD?=
=?UTF-8?q?=E3=82=B3=E3=83=BC=E3=83=89}/share`=E3=81=B8=E3=81=AE=E3=83=AA?=
=?UTF-8?q?=E3=83=80=E3=82=A4=E3=83=AC=E3=82=AF=E3=83=88=E6=99=82=E3=81=AB?=
=?UTF-8?q?=E3=82=AF=E3=82=A8=E3=83=AA=E3=83=91=E3=83=A9=E3=83=A1=E3=83=BC?=
=?UTF-8?q?=E3=82=BF=E3=81=8C=E6=B6=88=E3=81=88=E3=82=8B=20=20(#76)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* i18nRedirectorの修正 & TODO解消
* コメント削除
---
pages/tools/share-link-generator.vue | 2 +-
server/plugins/i18nRedirector.ts | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pages/tools/share-link-generator.vue b/pages/tools/share-link-generator.vue
index cf9ca3c2..ffd70961 100644
--- a/pages/tools/share-link-generator.vue
+++ b/pages/tools/share-link-generator.vue
@@ -132,7 +132,7 @@ const generatedUrl = computed(() => {
visibleAccts: (visibility.value === 'specified') ? recipents.value.split('\n').join(',') : undefined,
};
- const baseUrl = 'https://misskey-hub.net'; /* ←正式リリース時に runtimeConfig.public.baseUrl に置換 */
+ const baseUrl = runtimeConfig.public.baseUrl;
return withQuery(joinURL(baseUrl, '/share/'), query);
});
diff --git a/server/plugins/i18nRedirector.ts b/server/plugins/i18nRedirector.ts
index 71e3d629..edf97104 100644
--- a/server/plugins/i18nRedirector.ts
+++ b/server/plugins/i18nRedirector.ts
@@ -29,7 +29,7 @@ export default defineNitroPlugin((nitroApp) => {
html.head = remainingList.map((v) => v + '\n');
//@ts-ignore
- html.head.push('\n');
+ html.head.push('\n');
html.body = [
'\n\n',
`\n`,