summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/config/default.js2
-rw-r--r--lib/config/index.js2
-rw-r--r--lib/models/note.js2
-rw-r--r--lib/response.js2
-rw-r--r--lib/web/middleware/hedgeDocVersion.js (renamed from lib/web/middleware/codiMDVersion.js)2
-rw-r--r--lib/web/note/controller.js2
6 files changed, 6 insertions, 6 deletions
diff --git a/lib/config/default.js b/lib/config/default.js
index 38bb164b..00fa9eae 100644
--- a/lib/config/default.js
+++ b/lib/config/default.js
@@ -164,7 +164,7 @@ module.exports = {
openID: false,
// linkifyHeaderStyle - How is a header text converted into a link id.
// Header Example: "3.1. Good Morning my Friend! - Do you have 5$?"
- // * 'keep-case' is the legacy CodiMD value.
+ // * 'keep-case' is the legacy HedgeDoc value.
// Generated id: "31-Good-Morning-my-Friend---Do-you-have-5"
// * 'lower-case' is the same like legacy (see above), but converted to lower-case.
// Generated id: "#31-good-morning-my-friend---do-you-have-5"
diff --git a/lib/config/index.js b/lib/config/index.js
index b5461a8d..f78513a0 100644
--- a/lib/config/index.js
+++ b/lib/config/index.js
@@ -157,7 +157,7 @@ for (let i = keys.length; i--;) {
// Notify users about the prefix change and inform them they use legacy prefix for environment variables
if (Object.keys(process.env).toString().indexOf('HMD_') !== -1) {
- logger.warn('Using legacy HMD prefix for environment variables. Please change your variables in future. For details see: https://github.com/codimd/server#environment-variables-will-overwrite-other-server-configs')
+ logger.warn('Using legacy HMD prefix for environment variables. Please change your variables in future. For details see: https://github.com/hedgedoc/hedgedoc/blob/master/docs/configuration.md')
}
// Generate session secret if it stays on default values
diff --git a/lib/models/note.js b/lib/models/note.js
index edc79639..9fe02359 100644
--- a/lib/models/note.js
+++ b/lib/models/note.js
@@ -350,7 +350,7 @@ module.exports = function (sequelize, DataTypes) {
return title || 'Untitled'
}
Note.generateWebTitle = function (title) {
- title = !title || title === 'Untitled' ? 'CodiMD - Collaborative markdown notes' : title + ' - CodiMD'
+ title = !title || title === 'Untitled' ? 'HedgeDoc - Collaborative markdown notes' : title + ' - HedgeDoc'
return title
}
Note.extractNoteTags = function (meta, $) {
diff --git a/lib/response.js b/lib/response.js
index 2e944e32..a56273a2 100644
--- a/lib/response.js
+++ b/lib/response.js
@@ -97,7 +97,7 @@ function githubActionGist (req, res, note) {
request({
url: gistUrl,
headers: {
- 'User-Agent': 'CodiMD',
+ 'User-Agent': 'HedgeDoc',
'Authorization': 'token ' + accessToken
},
method: 'POST',
diff --git a/lib/web/middleware/codiMDVersion.js b/lib/web/middleware/hedgeDocVersion.js
index e7775876..c34e375b 100644
--- a/lib/web/middleware/codiMDVersion.js
+++ b/lib/web/middleware/hedgeDocVersion.js
@@ -4,7 +4,7 @@ const config = require('../../config')
module.exports = function (req, res, next) {
res.set({
- 'CodiMD-Version': config.version
+ 'HedgeDoc-Version': config.version
})
return next()
}
diff --git a/lib/web/note/controller.js b/lib/web/note/controller.js
index e537fe08..f79574df 100644
--- a/lib/web/note/controller.js
+++ b/lib/web/note/controller.js
@@ -74,7 +74,7 @@ exports.showNote = function (req, res, next) {
'Cache-Control': 'private', // only cache by client
'X-Robots-Tag': 'noindex, nofollow' // prevent crawling
})
- return res.render('codimd.ejs', {
+ return res.render('hedgedoc.ejs', {
title: title,
opengraph: opengraph
})