diff options
| author | anatawa12 <anatawa12@icloud.com> | 2023-09-07 16:48:47 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-07 16:48:47 +0900 |
| commit | 4c3935bf8070837b65da1723e9000cb4f2b79616 (patch) | |
| tree | 796a349c6f8d7a10355e294832b091dc5c64c650 /packages/frontend/src/components/MkNote.vue | |
| parent | fix(dev): use 20.5.1 instead of 20.x (diff) | |
| download | misskey-4c3935bf8070837b65da1723e9000cb4f2b79616.tar.gz misskey-4c3935bf8070837b65da1723e9000cb4f2b79616.tar.bz2 misskey-4c3935bf8070837b65da1723e9000cb4f2b79616.zip | |
chore(frontend): renote of note in sensitive channel is now home renote by default. (#11476)
* chore(frontend): renote of note in sensitive channel is now home renote by default.
* docs: センシティブチャンネルのNoteのReNoteはデフォルトでHome TLに流れるようになりました
---------
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Diffstat (limited to 'packages/frontend/src/components/MkNote.vue')
| -rw-r--r-- | packages/frontend/src/components/MkNote.vue | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index 85af667fbf..bedacbce2a 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -319,9 +319,15 @@ function renote(viaKeyboard = false) { const configuredVisibility = defaultStore.state.rememberNoteVisibility ? defaultStore.state.visibility : defaultStore.state.defaultNoteVisibility; const localOnly = defaultStore.state.rememberNoteVisibility ? defaultStore.state.localOnly : defaultStore.state.defaultNoteLocalOnly; + let visibility = appearNote.visibility; + visibility = smallerVisibility(visibility, configuredVisibility); + if (appearNote.channel?.isSensitive) { + visibility = smallerVisibility(visibility, 'home'); + } + os.api('notes/create', { localOnly, - visibility: smallerVisibility(appearNote.visibility, configuredVisibility), + visibility, renoteId: appearNote.id, }).then(() => { os.toast(i18n.ts.renoted); |