From 9f1e257e223ff4bd9ddf8525b14bedfd366066a6 Mon Sep 17 00:00:00 2001 From: Mystikfluu Date: Sat, 16 Jul 2022 10:30:40 +0200 Subject: [PATCH] add receiver/channel when posting --- js/posts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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="" }