diff --git a/js/posts.js b/js/posts.js index 57af8aa..a7b9f93 100644 --- a/js/posts.js +++ b/js/posts.js @@ -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=")) { document.getElementById("post-text").innerText = `${decodeURIComponent(window.location.href.split("message=")[1])} ` } diff --git a/views/otheruser.html b/views/otheruser.html index 24fd9e6..04ebddb 100644 --- a/views/otheruser.html +++ b/views/otheruser.html @@ -47,7 +47,7 @@ getuser() function mention() { - window.location.href = `/posts?mention=${other_username}` + window.location.href = `/posts?message=@${other_username}\n` }