added special text

This commit is contained in:
Mystikfluu
2022-04-24 11:56:14 +02:00
parent ca1b8fb324
commit 886178b79d
3 changed files with 18 additions and 3 deletions
+1 -1
View File
@@ -265,7 +265,7 @@ router.post("/api/post", async function(req,res) {
router.get("/api/getPosts/*", async function(req,res) {
let sql = `select post_user_name,post_text,post_time from zerotwohub.posts where post_id >= ? and post_id <= ? order by post_id desc;`
let sql = `select post_user_name,post_text,post_time,post_special_text from zerotwohub.posts where post_id >= ? and post_id <= ? order by post_id desc;`
let id = parseInt(req.originalUrl.replace("/api/getPosts/"))
if(isNaN(id))id=0
let values = [id,id+100]