minor
This commit is contained in:
parent
0b9a45e020
commit
c4362de152
3 changed files with 5 additions and 2 deletions
|
@ -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`) {
|
||||
|
|
|
@ -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}`)
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue