Age gate limits

This commit is contained in:
Natsumi
2024-12-20 10:14:54 +13:00
parent b861d47f87
commit 3153a40cde
4 changed files with 23 additions and 4 deletions

View File

@@ -12620,6 +12620,9 @@ speechSynthesis.getVoices();
tags.push('~canRequestInvite');
}
}
if (D.accessType === 'group' && D.ageGate) {
tags.push('~ageGate');
}
if (D.region === 'US West') {
tags.push(`~region(us)`);
} else if (D.region === 'US East') {
@@ -12746,7 +12749,14 @@ speechSynthesis.getVoices();
params.canRequestInvite = true;
}
}
if (D.ageGate) {
if (
D.ageGate &&
type === 'group' &&
this.hasGroupPermission(
D.groupRef,
'group-instance-age-gated-create'
)
) {
params.ageGate = true;
}
try {