From 46424f63f21b264745a07fdd3d6481a83f99ab87 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 10 Oct 2021 17:47:57 +0900 Subject: [PATCH] =?UTF-8?q?fix(client):=20=E3=83=94=E3=83=B3=E7=95=99?= =?UTF-8?q?=E3=82=81=E3=83=A6=E3=83=BC=E3=82=B6=E3=83=BC=E3=81=AE=E8=A8=AD?= =?UTF-8?q?=E5=AE=9A=E9=A0=85=E7=9B=AE=E3=81=8C=E3=81=AA=E3=81=84=E5=95=8F?= =?UTF-8?q?=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + src/client/pages/instance/settings.vue | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 36cbcb01d..d0158910c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ - クライアント: MFM関数構文のサジェストを実装 - クライアント: 未読の通知のみ表示する機能 - クライアント: 通知ページで通知の種類によるフィルタ +- クライアント: ピン留めユーザーの設定項目がない問題を修正 - ActivityPub: HTML -> MFMの変換を強化 - API: i/notifications に unreadOnly オプションを追加 - API: ap系のエンドポイントをログイン必須化+レートリミット追加 diff --git a/src/client/pages/instance/settings.vue b/src/client/pages/instance/settings.vue index c9a948da7..7bd363e5f 100644 --- a/src/client/pages/instance/settings.vue +++ b/src/client/pages/instance/settings.vue @@ -38,6 +38,11 @@ {{ $ts.maintainerEmail }} + + {{ $ts.pinnedUsers }} + + + {{ $ts.maxNoteTextLength }} @@ -98,6 +103,7 @@ export default defineComponent({ maxNoteTextLength: 0, enableLocalTimeline: false, enableGlobalTimeline: false, + pinnedUsers: '', } }, @@ -119,6 +125,7 @@ export default defineComponent({ this.maxNoteTextLength = meta.maxNoteTextLength; this.enableLocalTimeline = !meta.disableLocalTimeline; this.enableGlobalTimeline = !meta.disableGlobalTimeline; + this.pinnedUsers = meta.pinnedUsers.join('\n'); }, save() { @@ -134,6 +141,7 @@ export default defineComponent({ maxNoteTextLength: this.maxNoteTextLength, disableLocalTimeline: !this.enableLocalTimeline, disableGlobalTimeline: !this.enableGlobalTimeline, + pinnedUsers: this.pinnedUsers.split('\n'), }).then(() => { fetchInstance(); });