Small fixes

This commit is contained in:
Natsumi
2025-11-09 20:48:42 +11:00
parent ddb62d7a31
commit 9069d8cefe
6 changed files with 36 additions and 16 deletions
+9 -2
View File
@@ -266,7 +266,10 @@ export const useSearchStore = defineStore('Search', () => {
) {
userStore.showUserDialog(input);
return true;
} else if (input.substring(0, 5) === 'avtr_') {
} else if (
input.substring(0, 5) === 'avtr_' ||
input.substring(0, 2) === 'b_'
) {
avatarStore.showAvatarDialog(input);
return true;
} else if (input.substring(0, 4) === 'grp_') {
@@ -316,7 +319,11 @@ export const useSearchStore = defineStore('Search', () => {
return true;
}
}
} else if (input.substring(0, 5) === 'wrld_') {
} else if (
input.substring(0, 5) === 'wrld_' ||
input.substring(0, 4) === 'wld_' ||
input.substring(0, 2) === 'o_'
) {
// a bit hacky, but supports weird malformed inputs cut out from url, why not
if (input.indexOf('&instanceId=') >= 0) {
input = `https://vrchat.com/home/launch?worldId=${input}`;