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

@@ -440,6 +440,10 @@ export default class extends baseClass {
);
}
this.isAgeGated = this.instance.ageGate === true;
if (this.location && this.location.includes('~ageGate')) {
// dumb workaround for API not returning `ageGate`
this.isAgeGated = true;
}
},
showUserDialog(userId) {
API.$emit('SHOW_USER_DIALOG', userId);