fixed #5
This commit is contained in:
parent
36fd7ff7ff
commit
73ffb69917
@ -27,7 +27,7 @@
|
|||||||
async function getuser() {
|
async function getuser() {
|
||||||
let user = await (await fetch("/api/getotheruser?user="+other_username)).json()
|
let user = await (await fetch("/api/getotheruser?user="+other_username)).json()
|
||||||
document.getElementById('userName').innerText = `${(!user["error"] && "User: "+user.username) || "Error: "+user["error"]}`
|
document.getElementById('userName').innerText = `${(!user["error"] && "User: "+user.username) || "Error: "+user["error"]}`
|
||||||
document.getElementById('userBio').innerText = `${(!user["error"] && "Bio: "+user.bio) || ""}`
|
document.getElementById('userBio').innerText = `${(!user["error"] && "Bio: " + decodeURIComponent(user.bio)) || ""}`
|
||||||
document.title = `${(!user["error"] && user.username+"'s Page") || "No such User!"}`
|
document.title = `${(!user["error"] && user.username+"'s Page") || "No such User!"}`
|
||||||
if(user["error"]) {
|
if(user["error"]) {
|
||||||
document.body.removeChild(document.getElementById("mentionClick"))
|
document.body.removeChild(document.getElementById("mentionClick"))
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
if(user["error"])bio=user["error"];
|
if(user["error"])bio=user["error"];
|
||||||
if(!bio)bio="wow such empty"
|
if(!bio)bio="wow such empty"
|
||||||
document.getElementById("user").innerText = `User: ${username}`;
|
document.getElementById("user").innerText = `User: ${username}`;
|
||||||
document.getElementById("bio").placeholder = atob(bio);
|
document.getElementById("bio").placeholder = decodeURIComponent(atob(bio));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user