diff --git a/js/posts.js b/js/posts.js index b313aa0..f135d79 100644 --- a/js/posts.js +++ b/js/posts.js @@ -42,7 +42,7 @@ async function postMessage() { alert(`Error, your message cant contain more than 1000 characters! (${len})`) return } - let r = await post("/api/post",{"message":document.getElementById("post-text").value,"reply_id":reply_id}) + let r = await post("/api/post",{"message":document.getElementById("post-text").value,"reply_id":reply_id,"receiver":currentChannel}) if(window.location.href.split("?mention=")[1])location.replace('/posts'); document.getElementById("post-text").value="" }