Added make scripts, some new tests, install link now points to greasyfork

This commit is contained in:
MrFry 2020-03-22 14:46:20 +01:00
parent 0c5ab62a5c
commit 8ef64e1a54
10 changed files with 277 additions and 12 deletions

View file

@ -92,6 +92,7 @@ app.get('/', function (req, res) {
})
app.post('/postfeedback', function (req, res) {
logger.LogReq(req)
logger.Log('New feedback message', logger.GetColor('bluebg'), true)
utils.AppendToFile('\n\n' + logger.GetDateString() + ': ' + req.body.message_field, msgFile)
res.redirect('back')
@ -148,8 +149,9 @@ app.post('/isAdding', function (req, res) {
logger.LogReq(req)
// automatically saves to dataFile every n write
// FIXME: req.body.datatoadd is for backwards compatibility, remove this sometime in the future
let result = actions.ProcessIncomingRequest(
req.body.datatoadd,
req.body.datatoadd || req.body,
data,
{ motd, version }
)