Short name URLs gone for publics

This commit is contained in:
Natsumi
2022-03-21 08:53:40 +13:00
parent 7b93d5bd45
commit 0e0c34bb20
+5 -2
View File
@@ -15066,7 +15066,10 @@ speechSynthesis.getVoices();
}); });
API.$on('INSTANCE:SHORTNAME', function (args) { API.$on('INSTANCE:SHORTNAME', function (args) {
var url = `https://vrch.at/${args.json}`; var url = '';
if (args.json) {
url = `https://vrch.at/${args.json}`;
}
$app.launchDialog.shortUrl = url; $app.launchDialog.shortUrl = url;
}); });
@@ -15085,7 +15088,7 @@ speechSynthesis.getVoices();
D.shortUrl = ''; D.shortUrl = '';
D.url = getLaunchURL(L.worldId, L.instanceId); D.url = getLaunchURL(L.worldId, L.instanceId);
D.visible = true; D.visible = true;
if (L.accessType === 'public' || L.userId === API.currentUser.id) { if (L.userId === API.currentUser.id) {
API.getInstanceShortName({ API.getInstanceShortName({
worldId: L.worldId, worldId: L.worldId,
instanceId: L.instanceId instanceId: L.instanceId