mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 22:46:06 +02:00
rename $isVIP to $isModerator
This commit is contained in:
+5
-5
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user