diff --git a/locales/index.d.ts b/locales/index.d.ts
index 2494c1709b..46514ed200 100644
--- a/locales/index.d.ts
+++ b/locales/index.d.ts
@@ -534,6 +534,7 @@ export interface Locale {
"deleteAll": string;
"showFixedPostForm": string;
"showFixedPostFormInChannel": string;
+ "withRepliesByDefaultForNewlyFollowed": string;
"newNoteRecived": string;
"sounds": string;
"sound": string;
diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml
index 9adc4381a7..9a2b911acc 100644
--- a/locales/ja-JP.yml
+++ b/locales/ja-JP.yml
@@ -531,6 +531,7 @@ serverLogs: "サーバーログ"
deleteAll: "全て削除"
showFixedPostForm: "タイムライン上部に投稿フォームを表示する"
showFixedPostFormInChannel: "タイムライン上部に投稿フォームを表示する(チャンネル)"
+withRepliesByDefaultForNewlyFollowed: "あらたににフォローした人のリプライをTLに追加するようにする"
newNoteRecived: "新しいノートがあります"
sounds: "サウンド"
sound: "サウンド"
diff --git a/packages/frontend/src/pages/settings/general.vue b/packages/frontend/src/pages/settings/general.vue
index 55de53fb07..9c3dfc2ed9 100644
--- a/packages/frontend/src/pages/settings/general.vue
+++ b/packages/frontend/src/pages/settings/general.vue
@@ -29,6 +29,7 @@ SPDX-License-Identifier: AGPL-3.0-only
{{ i18n.ts.showFixedPostForm }}
{{ i18n.ts.showFixedPostFormInChannel }}
+ {{ i18n.ts.withRepliesByDefaultForNewlyFollowed }}
{{ i18n.ts.pinnedList }}
@@ -202,6 +203,7 @@ import { definePageMetadata } from '@/scripts/page-metadata.js';
import { miLocalStorage } from '@/local-storage.js';
import { globalEvents } from '@/events';
import { claimAchievement } from '@/scripts/achievements.js';
+import {$i} from "@/account.js";
const lang = ref(miLocalStorage.getItem('lang'));
const fontSize = ref(miLocalStorage.getItem('fontSize'));
@@ -249,6 +251,7 @@ const mediaListWithOneImageAppearance = computed(defaultStore.makeGetterSetter('
const notificationPosition = computed(defaultStore.makeGetterSetter('notificationPosition'));
const notificationStackAxis = computed(defaultStore.makeGetterSetter('notificationStackAxis'));
const keepScreenOn = computed(defaultStore.makeGetterSetter('keepScreenOn'));
+const defaultWithReplies = ref($i!.defaultWithReplies); // TODO
watch(lang, () => {
miLocalStorage.setItem('lang', lang.value as string);
@@ -289,6 +292,12 @@ watch([
await reloadAsk();
});
+watch([defaultWithReplies], async () => {
+ os.api('i/update', {
+ defaultWithReplies: defaultWithReplies.value,
+ });
+});
+
const emojiIndexLangs = ['en-US'];
function downloadEmojiIndex(lang: string) {