mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 06:13:52 +02:00
Fixes and changes
This commit is contained in:
@@ -9265,7 +9265,6 @@ speechSynthesis.getVoices();
|
||||
}
|
||||
API.applyAvatar({
|
||||
id: avatar.id,
|
||||
assetUrl: avatar.assetUrl, // remove this
|
||||
authorId: avatar.authorId,
|
||||
authorName: avatar.authorName,
|
||||
updated_at: avatar.updated_at,
|
||||
@@ -9298,6 +9297,9 @@ speechSynthesis.getVoices();
|
||||
// skip PyPyDance and VRDancing videos
|
||||
try {
|
||||
var url = new URL(videoUrl);
|
||||
if (url.origin === 'https://t-ne.x0.to') {
|
||||
url = new URL(url.searchParams.get('url'));
|
||||
}
|
||||
var id1 = url.pathname;
|
||||
var id2 = url.searchParams.get('v');
|
||||
if (id1 && id1.length === 12) {
|
||||
@@ -9738,22 +9740,27 @@ speechSynthesis.getVoices();
|
||||
return args;
|
||||
});
|
||||
}
|
||||
if (this.isGameNoVR) {
|
||||
var platform = 'Desktop';
|
||||
} else {
|
||||
var platform = 'VR';
|
||||
}
|
||||
switch (L.accessType) {
|
||||
case 'public':
|
||||
L.joinUrl = getLaunchURL(L.worldId, L.instanceId);
|
||||
L.accessName = `Public #${L.instanceName}`;
|
||||
L.accessName = `Public #${L.instanceName} (${platform})`;
|
||||
break;
|
||||
case 'invite+':
|
||||
L.accessName = `Invite+ #${L.instanceName}`;
|
||||
L.accessName = `Invite+ #${L.instanceName} (${platform})`;
|
||||
break;
|
||||
case 'invite':
|
||||
L.accessName = `Invite #${L.instanceName}`;
|
||||
L.accessName = `Invite #${L.instanceName} (${platform})`;
|
||||
break;
|
||||
case 'friends':
|
||||
L.accessName = `Friends #${L.instanceName}`;
|
||||
L.accessName = `Friends #${L.instanceName} (${platform})`;
|
||||
break;
|
||||
case 'friends+':
|
||||
L.accessName = `Friends+ #${L.instanceName}`;
|
||||
L.accessName = `Friends+ #${L.instanceName} (${platform})`;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -10570,7 +10577,7 @@ speechSynthesis.getVoices();
|
||||
API.getFriendStatus({
|
||||
userId: id
|
||||
}).then((args) => {
|
||||
if (args.json.isFriend) {
|
||||
if (args.json.isFriend && this.friendLog.has(id)) {
|
||||
var friendLogHistory = {
|
||||
created_at: new Date().toJSON(),
|
||||
type: 'Friend',
|
||||
@@ -10616,7 +10623,7 @@ speechSynthesis.getVoices();
|
||||
API.getFriendStatus({
|
||||
userId: id
|
||||
}).then((args) => {
|
||||
if (!args.json.isFriend) {
|
||||
if (!args.json.isFriend && this.friendLog.has(id)) {
|
||||
var friendLogHistory = {
|
||||
created_at: new Date().toJSON(),
|
||||
type: 'Unfriend',
|
||||
@@ -10659,7 +10666,7 @@ speechSynthesis.getVoices();
|
||||
API.getFriendStatus({
|
||||
userId: ref.id
|
||||
}).then((args) => {
|
||||
if (args.json.isFriend) {
|
||||
if (args.json.isFriend && this.friendLog.has(ref.id)) {
|
||||
if (ctx.displayName) {
|
||||
var friendLogHistory = {
|
||||
created_at: new Date().toJSON(),
|
||||
|
||||
Reference in New Issue
Block a user