Merge pull request #10457 from na2na-p/fix/visibility-widening

This commit is contained in:
Acid Chicken (硫酸鶏) 2023-04-05 02:15:09 +09:00 committed by GitHub
commit 3f39fc90fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -591,7 +591,8 @@ 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) {
if (annoying && visibility === 'public') {
const { canceled, result } = await os.actions({ const { canceled, result } = await os.actions({
type: 'warning', type: 'warning',
text: i18n.ts.thisPostMayBeAnnoying, text: i18n.ts.thisPostMayBeAnnoying,