This commit is contained in:
lesion 2023-05-16 17:17:45 +02:00
parent 0b9a45e020
commit c4362de152
No known key found for this signature in database
GPG key ID: 352918250B012177
3 changed files with 5 additions and 2 deletions

View file

@ -70,6 +70,7 @@ const exportController = {
case 'json':
return res.json(events)
}
return res.send('Please specify a valid format: rss, feed, ics or json').status(404)
},
feed (_req, res, events, title = res.locals.settings.title, link = `${res.locals.settings.baseurl}/feed/rss`) {

View file

@ -63,7 +63,8 @@ const Helpers = {
})
log.debug(`signed ${ret.status} => ${ret.data}`)
} catch (e) {
log.error(`Response: ${e.response.status} ${e.response.data}`)
log.debug(e)
log.error(`Response: ${ret.status} ${ret.data}`)
}
},

View file

@ -62,7 +62,8 @@ module.exports = {
include: [{ model: APUser, required: true, attributes: ['ap_id'] }]
})
if (!resource) {
log.info(`Comment ${req.body.object.id} not found`)
log.info(`Comment not found`)
log.debug(req.body)
return res.status(404).send('Not found')
}
// check if fedi_user that requested resource removal