aboutsummaryrefslogtreecommitdiff
path: root/lib/app.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-12-18 21:27:01 -0500
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-12-31 22:04:23 -0500
commit9d8f3deef44af4d6b7508dfe557677293d2977ce (patch)
tree7f3b5dc6fc17b5be05dacc06eee9c7d0422c46ef /lib/app.js
parente6738bd3ec257b3f35e04bc5b73e3b6de93772fb (diff)
downloadpatchfoo-9d8f3deef44af4d6b7508dfe557677293d2977ce.tar.gz
patchfoo-9d8f3deef44af4d6b7508dfe557677293d2977ce.zip
Show id in feed names in markdown-usable way
If the feed name cannot be used as a @mention but must be a [@mention](@id), show it that way, so it can be copy-pastable into new message text.
Diffstat (limited to 'lib/app.js')
-rw-r--r--lib/app.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/app.js b/lib/app.js
index 7caab05..d0ff7f4 100644
--- a/lib/app.js
+++ b/lib/app.js
@@ -49,6 +49,7 @@ function App(sbot, config) {
|| new Buffer('HT0wIYuk3OWc2FtaCfHNnakV68jSGRrjRMP9Kos7IQc=', 'base64') // sha256('peer-invites')
this.devPeerInviteCap = new Buffer('pmr+IzM+4VAZgi5H5bOopXkwnzqrNussS7DtAJsfbf0=', 'base64') // sha256('peer-invites:DEVELOPMENT')
this.voteBranches = !!config.voteBranches
+ this.copyableIds = config.copyableIds == null ? true : config.copyableIds
this.hostname = (/:/.test(this.host) ? '[' + this.host + ']' : this.host) + this.port
this.dir = path.join(config.path, conf.dir || 'patchfoo')