除外範囲考慮するように
This commit is contained in:
parent
a0c3dede8e
commit
3877b366b3
1 changed files with 6 additions and 1 deletions
|
@ -591,7 +591,12 @@ async function post(ev?: MouseEvent) {
|
|||
text.includes('$[x4') ||
|
||||
text.includes('$[scale') ||
|
||||
text.includes('$[position');
|
||||
if (annoying) {
|
||||
|
||||
// 対象になる公開範囲の配列
|
||||
const inclusionVisibilities: ReadonlyArray<'public' | 'home' | 'followers' | 'specified'>
|
||||
= ['public'];
|
||||
|
||||
if (annoying && inclusionVisibilities.includes(visibility)) {
|
||||
const { canceled, result } = await os.actions({
|
||||
type: 'warning',
|
||||
text: i18n.ts.thisPostMayBeAnnoying,
|
||||
|
|
Loading…
Reference in a new issue