mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-03-23 21:50:10 +08:00
Compare against PrivacyState rather than using a magic number
This commit is contained in:
parent
c7a8c676b7
commit
d09f18f055
@ -68,7 +68,7 @@ function CSteamUser(community, userData, customurl) {
|
||||
this.isLimitedAccount = processItem('isLimitedAccount') == 1;
|
||||
this.customURL = processItem('customURL', customurl);
|
||||
|
||||
if (this.visibilityState == 3) {
|
||||
if (this.visibilityState == SteamCommunity.PrivacyState.Public) {
|
||||
let memberSinceValue = processItem('memberSince', '0').replace(/(\d{1,2})(st|nd|th)/, '$1');
|
||||
|
||||
if (memberSinceValue.indexOf(',') === -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user