summaryrefslogtreecommitdiff
path: root/bucky/app/bucky.js
diff options
context:
space:
mode:
authorpep <yes@peepee.me>2020-07-20 21:38:51 +0000
committerpep <yes@peepee.me>2020-07-20 21:38:51 +0000
commit9a5500c32671a72c43d518c6d2263a9f0c9488b0 (patch)
tree0b508be37d7da95a2cf6854172a942fddc0cc0fa /bucky/app/bucky.js
parentea1b2e5ae26598ced6c2bdbc705756c3c968781c (diff)
moved search to redis, no more bdb
Diffstat (limited to 'bucky/app/bucky.js')
-rw-r--r--bucky/app/bucky.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/bucky/app/bucky.js b/bucky/app/bucky.js
index 3824c5e..8d9839f 100644
--- a/bucky/app/bucky.js
+++ b/bucky/app/bucky.js
@@ -413,6 +413,7 @@ var bucky = module.exports = {
res.json({ error: "no comment" })
return
}
+ console.log("in create comment")
var data = {
thread: res.thread.get('id'),
parent_id: req.body.parent_id || -1,
@@ -503,9 +504,15 @@ var bucky = module.exports = {
privacy: false,
storage: process.env.S3_BUCKET,
}
+ req.body.comment = url+"\n"+file.originalname
db.createFile(data).then(function(file){
resolve(file)
- }).catch( (err) => reject(err) )
+ }).catch( (err) => reject(err) ).then(
+ function(){
+ console.log("about to call createComment")
+ bucky.createComment(req, res, function(){})
+
+ })
}
})
})