rename $isVIP to $isModerator

This commit is contained in:
pypy
2020-01-12 19:37:25 +09:00
parent 9910ad62a1
commit 3bec2798ac
+5 -5
View File
@@ -798,12 +798,12 @@ CefSharp.BindObjectAsync(
}; };
var applyUserTrustLevel = function (ref) { var applyUserTrustLevel = function (ref) {
ref.$isVIP = ref.developerType && ref.$isModerator = ref.developerType &&
ref.developerType !== 'none'; ref.developerType !== 'none';
ref.$isTroll = false; ref.$isTroll = false;
var { tags } = ref; var { tags } = ref;
if (tags.includes('admin_moderator')) { if (tags.includes('admin_moderator')) {
ref.$isVIP = true; ref.$isModerator = true;
} }
if (tags.includes('system_troll') || if (tags.includes('system_troll') ||
tags.includes('system_probable_troll')) { tags.includes('system_probable_troll')) {
@@ -831,7 +831,7 @@ CefSharp.BindObjectAsync(
ref.$trustLevel = 'Visitor'; ref.$trustLevel = 'Visitor';
ref.$trustClass = 'x-tag-untrusted'; ref.$trustClass = 'x-tag-untrusted';
} }
if (ref.$isVIP) { if (ref.$isModerator) {
ref.$trustLevel = 'VRChat Team'; ref.$trustLevel = 'VRChat Team';
ref.$trustClass = 'x-tag-vip'; ref.$trustClass = 'x-tag-vip';
} else if (ref.$isTroll) { } else if (ref.$isTroll) {
@@ -876,7 +876,7 @@ CefSharp.BindObjectAsync(
offlineFriends: [], offlineFriends: [],
// VRCX // VRCX
$homeLocation: {}, $homeLocation: {},
$isVIP: false, $isModerator: false,
$isTroll: false, $isTroll: false,
$trustLevel: 'Visitor', $trustLevel: 'Visitor',
$trustClass: 'x-tag-untrusted', $trustClass: 'x-tag-untrusted',
@@ -956,7 +956,7 @@ CefSharp.BindObjectAsync(
// VRCX // VRCX
$location: {}, $location: {},
$location_at: Date.now(), $location_at: Date.now(),
$isVIP: false, $isModerator: false,
$isTroll: false, $isTroll: false,
$trustLevel: 'Visitor', $trustLevel: 'Visitor',
$trustClass: 'x-tag-untrusted', $trustClass: 'x-tag-untrusted',