diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2019-12-18 21:27:01 -0500 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2019-12-31 22:04:23 -0500 |
commit | 9d8f3deef44af4d6b7508dfe557677293d2977ce (patch) | |
tree | 7f3b5dc6fc17b5be05dacc06eee9c7d0422c46ef /lib/render-msg.js | |
parent | e6738bd3ec257b3f35e04bc5b73e3b6de93772fb (diff) | |
download | patchfoo-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/render-msg.js')
-rw-r--r-- | lib/render-msg.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js index 4b8c8c0..5411974 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -129,7 +129,7 @@ RenderMsg.prototype.wrap = function (content, cb) { done()(null, [h('tr.msg-row', h('td.msg-left', h('div', this.render.avatarImage(this.msg.value.author, done())), - h('div', this.render.idLink(this.msg.value.author, done())), + h('div', this.render.idLinkCopyable(this.msg.value.author, done())), this.recpsLine(done()) ), h('td.msg-main', @@ -167,7 +167,7 @@ RenderMsg.prototype.wrapMini = function (content, cb) { var done = multicb({pluck: 1, spread: true}) done()(null, h('tr.msg-row', h('td.msg-left', - this.render.idLink(this.value.author, done()), ' ', + this.render.idLinkCopyable(this.value.author, done()), ' ', this.recpsLine(done()), channel ? [h('a', {href: this.toUrl(channel)}, channel), ' '] : ''), h('td.msg-main', |