summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
author蒼時弦也2017-01-10 09:35:21 +0800
committer蒼時弦也2017-01-10 09:35:21 +0800
commitc21fb8e2a0030095fd8dbfd13f6ba84e933b0e2e (patch)
tree3a109c9c7d9857e2eef4489142a1e1fdaa308272 /lib
parentf8e5b547670e3eeb75af3249bb9ad1ee2f44e58f (diff)
Recovery tariling spaces
Diffstat (limited to '')
-rwxr-xr-xlib/response.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/response.js b/lib/response.js
index 910db863..a0dc8b1f 100755
--- a/lib/response.js
+++ b/lib/response.js
@@ -161,7 +161,7 @@ function showNote(req, res, next) {
findNote(req, res, function (note) {
// force to use note id
var noteId = req.params.noteId;
- var id = LZString.compressToBase64(note.id);
+ var id = LZString.compressToBase64(note.id);
if ((note.alias && noteId != note.alias) || (!note.alias && noteId != id))
return res.redirect(config.serverurl + "/" + (note.alias || id));
return responseHackMD(res, note);
@@ -413,7 +413,7 @@ function publishSlideActions(req, res, next) {
res.redirect(config.serverurl + '/' + (note.alias ? note.alias : LZString.compressToBase64(note.id)));
break;
default:
- res.redirect(config.serverurl + '/p/' + note.shortid);
+ res.redirect(config.serverurl + '/p/' + note.shortid);
break;
}
});