レビュー対応

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
This commit is contained in:
A.Yamamoto 2023-04-03 11:23:03 +09:00 committed by na2na-p
parent 3877b366b3
commit a46bfc7c14
No known key found for this signature in database
GPG Key ID: C2038CA8B2D047B3
1 changed files with 1 additions and 5 deletions

View File

@ -592,11 +592,7 @@ async function post(ev?: MouseEvent) {
text.includes('$[scale') ||
text.includes('$[position');
//
const inclusionVisibilities: ReadonlyArray<'public' | 'home' | 'followers' | 'specified'>
= ['public'];
if (annoying && inclusionVisibilities.includes(visibility)) {
if (annoying && visibility === 'public') {
const { canceled, result } = await os.actions({
type: 'warning',
text: i18n.ts.thisPostMayBeAnnoying,