Fixes and changes

This commit is contained in:
Natsumi
2022-03-07 13:21:40 +13:00
parent 1b26dacaba
commit 40dfb248de
2 changed files with 20 additions and 33 deletions

View File

@@ -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(),