mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-12 16:53:09 +02:00
除外範囲考慮するように
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('$[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 a new issue