diff --git a/server/api/controller/export.js b/server/api/controller/export.js index fb6d04f2..9ca35138 100644 --- a/server/api/controller/export.js +++ b/server/api/controller/export.js @@ -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`) { diff --git a/server/federation/helpers.js b/server/federation/helpers.js index 01779f20..db060bf9 100644 --- a/server/federation/helpers.js +++ b/server/federation/helpers.js @@ -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}`) } }, diff --git a/server/federation/resources.js b/server/federation/resources.js index 4c497635..a70f9aeb 100644 --- a/server/federation/resources.js +++ b/server/federation/resources.js @@ -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