Merge pull request #32 from anatawa12/pick-renote-sensitive-home-by-default
Pick renote sensitive home by default
This commit is contained in:
commit
93df9394cf
|
@ -20,6 +20,7 @@
|
|||
- ハイライトから除外するチャンネルをsensitiveチャンネルのみにしました
|
||||
|
||||
### Client
|
||||
- センシティブチャンネルのNoteのReNoteはデフォルトでHome TLに流れるようになりました
|
||||
- Enhance: Renote自体を通報できるように
|
||||
|
||||
### Server
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue