This commit is contained in:
Mystikfluu 2022-05-31 10:03:52 +02:00
commit 0c53ec31b3
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@
async function getuser() {
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('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!"}`
if(user["error"]) {
document.body.removeChild(document.getElementById("mentionClick"))

View File

@ -35,7 +35,7 @@
if(user["error"])bio=user["error"];
if(!bio)bio="wow such empty"
document.getElementById("user").innerText = `User: ${username}`;
document.getElementById("bio").placeholder = atob(bio);
document.getElementById("bio").placeholder = decodeURIComponent(atob(bio));
}