Skip to content

Commit

Permalink
add download option to published notes
Browse files Browse the repository at this point in the history
  • Loading branch information
asg017 committed Oct 25, 2018
1 parent 2236139 commit 0fd6720
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/response.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0fd6720

Please sign in to comment.