summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author蒼時弦也2017-01-10 09:35:21 +0800
committer蒼時弦也2017-01-10 09:35:21 +0800
commitc21fb8e2a0030095fd8dbfd13f6ba84e933b0e2e (patch)
tree3a109c9c7d9857e2eef4489142a1e1fdaa308272
parentf8e5b547670e3eeb75af3249bb9ad1ee2f44e58f (diff)
Recovery tariling spaces
-rw-r--r--README.md18
-rwxr-xr-xlib/response.js4
2 files changed, 11 insertions, 11 deletions
diff --git a/README.md b/README.md
index 6b473b57..a2980ee4 100644
--- a/README.md
+++ b/README.md
@@ -3,8 +3,8 @@ HackMD
[![Join the chat at https://gitter.im/hackmdio/hackmd](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/hackmdio/hackmd?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
-HackMD lets you create realtime collaborative markdown notes on all platforms.
-Inspired by Hackpad, with more focus on speed and flexibility.
+HackMD lets you create realtime collaborative markdown notes on all platforms.
+Inspired by Hackpad, with more focus on speed and flexibility.
Still in the early stage, feel free to fork or contribute to HackMD.
Thanks for using! :smile:
@@ -12,7 +12,7 @@ Thanks for using! :smile:
[docker-hackmd](https://github.com/hackmdio/docker-hackmd)
---
-Before you go too far, here is the great docker repo for HackMD.
+Before you go too far, here is the great docker repo for HackMD.
With docker, you can deploy a server in minutes without any downtime.
Heroku Deployment
@@ -25,14 +25,14 @@ You can quickly setup a sample heroku hackmd application by clicking the button
[migration-to-0.5.0](https://github.com/hackmdio/migration-to-0.5.0)
---
-We don't use LZString to compress socket.io data and DB data after version 0.5.0.
+We don't use LZString to compress socket.io data and DB data after version 0.5.0.
Please run the migration tool if you're upgrading from the old version.
[migration-to-0.4.0](https://github.com/hackmdio/migration-to-0.4.0)
---
-We've dropped MongoDB after version 0.4.0.
-So here is the migration tool for you to transfer the old DB data to the new DB.
+We've dropped MongoDB after version 0.4.0.
+So here is the migration tool for you to transfer the old DB data to the new DB.
This tool is also used for official service.
Browsers Requirement
@@ -213,9 +213,9 @@ Third-party integration oauth callback urls
Operational Transformation
---
-From 0.3.2, we started supporting operational transformation.
-It makes concurrent editing safe and will not break up other users' operations.
-Additionally, now can show other clients' selections.
+From 0.3.2, we started supporting operational transformation.
+It makes concurrent editing safe and will not break up other users' operations.
+Additionally, now can show other clients' selections.
See more at [http://operational-transformation.github.io/](http://operational-transformation.github.io/)
**License under MIT.**
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;
}
});