summaryrefslogtreecommitdiff
path: root/lib/response.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/response.js')
-rw-r--r--lib/response.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/response.js b/lib/response.js
index d1e5e15c..3a31c511 100644
--- a/lib/response.js
+++ b/lib/response.js
@@ -109,7 +109,7 @@ function showIndex (req, res, next) {
}
}
-function responseHackMD (res, note) {
+function responseCodiMD (res, note) {
var body = note.content
var extracted = models.Note.extractMeta(body)
var meta = models.Note.parseMeta(extracted.meta)
@@ -119,7 +119,7 @@ function responseHackMD (res, note) {
'Cache-Control': 'private', // only cache by client
'X-Robots-Tag': 'noindex, nofollow' // prevent crawling
})
- res.render(config.hackmdPath, {
+ res.render(config.codimdPath, {
url: config.serverURL,
title: title,
useCDN: config.useCDN,
@@ -214,7 +214,7 @@ function showNote (req, res, next) {
var noteId = req.params.noteId
var id = models.Note.encodeNoteId(note.id)
if ((note.alias && noteId !== note.alias) || (!note.alias && noteId !== id)) { return res.redirect(config.serverURL + '/' + (note.alias || id)) }
- return responseHackMD(res, note)
+ return responseCodiMD(res, note)
})
}
@@ -527,7 +527,7 @@ function githubActionGist (req, res, note) {
request({
url: gistUrl,
headers: {
- 'User-Agent': 'HackMD',
+ 'User-Agent': 'CodiMD',
'Authorization': 'token ' + accessToken
},
method: 'POST',