add receiver/channel when posting
This commit is contained in:
parent
59f61112a9
commit
9f1e257e22
@ -42,7 +42,7 @@ async function postMessage() {
|
|||||||
alert(`Error, your message cant contain more than 1000 characters! (${len})`)
|
alert(`Error, your message cant contain more than 1000 characters! (${len})`)
|
||||||
return
|
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');
|
if(window.location.href.split("?mention=")[1])location.replace('/posts');
|
||||||
document.getElementById("post-text").value=""
|
document.getElementById("post-text").value=""
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user