add receiver/channel when posting
This commit is contained in:
+1
-1
@@ -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=""
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user