fix(api): exempt bots from being considered unclaimed users (#45)

This commit is contained in:
hampus-fluxer
2026-01-06 03:45:28 +01:00
committed by GitHub
parent 1cef2290fe
commit 6f21a7e37b
17 changed files with 45 additions and 51 deletions

View File

@@ -139,6 +139,10 @@ export class User {
return checkIsPremium(this);
}
isUnclaimedAccount(): boolean {
return this.passwordHash === null && !this.isBot;
}
canUseGlobalExpressions(): boolean {
return this.isPremium() || this.isBot;
}