diff --git a/lib/response.js b/lib/response.js index 4f572e47..8a01c4e9 100644 --- a/lib/response.js +++ b/lib/response.js @@ -471,6 +471,9 @@ function publishNoteActions (req, res, next) { case 'edit': res.redirect(config.serverURL + '/' + (note.alias ? note.alias : models.Note.encodeNoteId(note.id))) break + case 'download': + actionDownload(req, res, note) + breal default: res.redirect(config.serverURL + '/s/' + note.shortid) break