除外範囲考慮するように

This commit is contained in:
na2na-p 2023-04-03 09:59:35 +09:00
parent a0c3dede8e
commit 3877b366b3
No known key found for this signature in database
GPG Key ID: C2038CA8B2D047B3
1 changed files with 6 additions and 1 deletions

View File

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