remove "mention" argument from posts

This commit is contained in:
Mystikfluu 2022-08-28 21:50:34 +02:00
parent 630e2d050c
commit e2dc0b19a6
2 changed files with 1 additions and 6 deletions

View File

@ -336,11 +336,6 @@ document.addEventListener("visibilitychange", function() {
} }
}); });
if(window.location.href.includes("mention=")) { //deprecated, use message instead
document.getElementById("post-text").innerText = `@${decodeURIComponent(window.location.href.split("mention=")[1])} `
}
//TODO: remove mention
if(window.location.href.includes("message=")) { if(window.location.href.includes("message=")) {
document.getElementById("post-text").innerText = `${decodeURIComponent(window.location.href.split("message=")[1])} ` document.getElementById("post-text").innerText = `${decodeURIComponent(window.location.href.split("message=")[1])} `
} }

View File

@ -47,7 +47,7 @@
getuser() getuser()
function mention() { function mention() {
window.location.href = `/posts?mention=${other_username}` window.location.href = `/posts?message=@${other_username}\n`
} }
</script> </script>
</body> </body>