move reply click handling to a seperate function

This commit is contained in:
Mystikfluu
2022-07-26 15:56:30 +02:00
parent 10dd1f0794
commit 85b8754b85
3 changed files with 36 additions and 17 deletions
+1 -1
View File
@@ -663,7 +663,7 @@ router.get("/api/getPostsLowerThan", async function(req,res) {
router.get("/api/getPost", async function(req,res) {
res.set("Access-Control-Allow-Origin","*")
let arg = req.query.id
let sql = `select post_user_name,post_text,post_time,post_special_text,post_id,post_from_bot,post_reply_id from ipost.posts where post_id=?;`
let sql = `select post_user_name,post_text,post_time,post_special_text,post_id,post_from_bot,post_reply_id,post_receiver_name from ipost.posts where post_id=?;`
con.query(sql, [arg], function (err, result) {
if (err) throw err;
if(result[0]) {