remove "mention" argument from posts
This commit is contained in:
parent
630e2d050c
commit
e2dc0b19a6
@ -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])} `
|
||||
}
|
||||
|
@ -47,7 +47,7 @@
|
||||
getuser()
|
||||
|
||||
function mention() {
|
||||
window.location.href = `/posts?mention=${other_username}`
|
||||
window.location.href = `/posts?message=@${other_username}\n`
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
Loading…
x
Reference in New Issue
Block a user