Skip to content

Commit

Permalink
enhance: センシティブなユーザーが投稿する際には常にCWを投稿フォームで付与するように
Browse files Browse the repository at this point in the history
  • Loading branch information
Esurio committed Jul 31, 2024
1 parent 72d957b commit 302f4e6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/frontend/src/components/MkPostForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ import { vibrate } from '@/scripts/vibrate.js';
import * as sound from '@/scripts/sound.js';
import { mfmFunctionPicker } from '@/scripts/mfm-function-picker.js';
const $i = signinRequired();
const modal = inject('modal');
Expand Down Expand Up @@ -343,6 +344,11 @@ if ($i.isSilenced && visibility.value === 'public') {
visibility.value = 'home';
}
if ($i.isSensitive && !useCw.value) {
useCw.value = true;
cw.value = i18n.ts.sensitiveUserCaution
}
if (props.channel) {
visibility.value = 'public';
localOnly.value = true; // TODO: チャンネルが連合するようになった折には消す
Expand Down

0 comments on commit 302f4e6

Please sign in to comment.