Update js/app.js
This commit is contained in:
parent
bbc7bb6033
commit
70fcf0cd4b
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue