From 764e516a3c1adf9d81197e67407167566f40e1be Mon Sep 17 00:00:00 2001 From: naskya Date: Sun, 15 Oct 2023 14:46:40 +0900 Subject: [PATCH] feat: add private visibility --- README.md | 2 ++ locales/en-US.yml | 2 ++ locales/ja-JP.yml | 2 ++ locales/zh-CN.yml | 2 ++ locales/zh-TW.yml | 2 ++ packages/client/src/components/MkPostForm.vue | 12 ++++++++-- .../client/src/components/MkVisibility.vue | 16 +++++++++++-- .../src/components/MkVisibilityPicker.vue | 23 ++++++++++++++++++- .../client/src/pages/settings/privacy.vue | 8 +++++++ 9 files changed, 64 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 44d5af25..385c5428 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,8 @@ ## 主要な変更点 +- 「秘密」という公開範囲を追加 + - 宛先無しのダイレクト投稿を言い換えているだけです - パフォーマンス向上のためアクティブユーザー以外のチャート生成を無効化 - サードパーティー製クライアントが動かなくなるのを阻止するため API のエンドポイントは残していますが、叩いても `0` が並んだ配列しか返しません。 - モデレーターでない一般ユーザーにもカスタム絵文字の管理権を与えられるように diff --git a/locales/en-US.yml b/locales/en-US.yml index 6292c969..4d05afb0 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -1710,6 +1710,8 @@ _visibility: followersDescription: "Make visible to your followers and mentioned users only" specified: "Direct" specifiedDescription: "Make visible for specified users only" + private: "Private" + privateDescription: "Make visible for you only" localOnly: "Local only" localOnlyDescription: "Not visible to remote users" _postForm: diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 3ccb28e9..3518224b 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1494,6 +1494,8 @@ _visibility: followersDescription: "フォロワーと会話相手のみに公開" specified: "ダイレクト" specifiedDescription: "指定したユーザーのみに公開" + private: "秘密" + privateDescription: "あなた以外には非公開" localOnly: "ローカルのみ" localOnlyDescription: "リモートユーザーには非公開" _postForm: diff --git a/locales/zh-CN.yml b/locales/zh-CN.yml index df820de3..27390cc5 100644 --- a/locales/zh-CN.yml +++ b/locales/zh-CN.yml @@ -1395,6 +1395,8 @@ _visibility: followersDescription: "仅对您的关注者和提及的用户可见" specified: "指定用户" specifiedDescription: "仅发送至指定用户" + private: "秘密" + privateDescription: "仅你可见" localOnly: "仅限本地" localOnlyDescription: "对远程用户不可见" _postForm: diff --git a/locales/zh-TW.yml b/locales/zh-TW.yml index f59b5237..3db41b35 100644 --- a/locales/zh-TW.yml +++ b/locales/zh-TW.yml @@ -1390,6 +1390,8 @@ _visibility: followersDescription: "僅發佈至關注者" specified: "指定使用者" specifiedDescription: "僅發送至指定使用者" + private: "祕密" + privateDescription: "僅你可見" localOnly: "僅限本地" localOnlyDescription: "對遠端使用者隱藏" _postForm: diff --git a/packages/client/src/components/MkPostForm.vue b/packages/client/src/components/MkPostForm.vue index f78728b5..2edfddf4 100644 --- a/packages/client/src/components/MkPostForm.vue +++ b/packages/client/src/components/MkPostForm.vue @@ -50,6 +50,9 @@ + +