Update js/app.js

This commit is contained in:
biglyderv 2025-04-30 02:41:54 -04:00
parent bbc7bb6033
commit 70fcf0cd4b

View file

@ -39,7 +39,7 @@ async function main(type) {
user = user.slice(1);
if (typed == '#') {
studios[user] = await (fetch(`https://feed.zenoverse.net/studio/${user}`)
studios[user] = await (fetch(`https://feed.dervland.net/studio/${user}`)
.then(x => x.json()));
}
}
@ -57,20 +57,20 @@ async function main(type) {
let extraFetch = [];
if (typed == '#' && type == '#user') {
extraFetch = await (fetch(`https://feed.zenoverse.net/studio_project/${user}`)
extraFetch = await (fetch(`https://feed.dervland.net/studio_project/${user}`)
.then(x => x.json()));
extraFetch.forEach(x => {
x.studio = studios[user ].title;
});
} else if (typed == '#' && type == '#comment') {
extraFetch = await (fetch(`https://feed.zenoverse.net/studio_comment/${user}`)
extraFetch = await (fetch(`https://feed.dervland.net/studio_comment/${user}`)
.then(x => x.json()));
extraFetch.forEach(x => {
x.studio = studios[user].title;
x.studioID = user
});
} else if (typed == '@' && type == '#user') {
extraFetch = await (fetch(`https://feed.zenoverse.net/user/${user}`)
extraFetch = await (fetch(`https://feed.dervland.net/user/${user}`)
.then(x => x.json()));
extraFetch.forEach(x => x.username = user);
}