除外範囲考慮するように
This commit is contained in:
parent
a0c3dede8e
commit
3877b366b3
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue