add receiver/channel when posting

This commit is contained in:
Mystikfluu 2022-07-16 10:30:40 +02:00
parent 59f61112a9
commit 9f1e257e22

View File

@ -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=""
}