Fix user link in channel feed

This commit is contained in:
Anders Rune Jensen
2017-04-15 12:47:09 +02:00
parent 27f58a3795
commit a234f1b2ab
+2 -2
View File
@@ -102,7 +102,7 @@ exports.init = function (sbot, config) {
console.log("serving feed: " + feedId) console.log("serving feed: " + feedId)
var opts = defaultOpts var opts = defaultOpts
opts.marked = { opts.marked = {
gfm: true, gfm: true,
mentions: true, mentions: true,
@@ -462,7 +462,7 @@ function renderMsg(opts, msg) {
+ ' src="' + opts.img_base + escape(msg.author.image) + '"' + ' src="' + opts.img_base + escape(msg.author.image) + '"'
+ ' height="32" width="32">' + ' height="32" width="32">'
+ '<a class="ssb-avatar-name"' + '<a class="ssb-avatar-name"'
+ ' href="' + opts.feed_base + escape(msg.value.author) + '"' + ' href="/user/' + escape(msg.value.author) + '"'
+ '>' + msg.author.name + '</a>' + '>' + msg.author.name + '</a>'
+ msgTimestamp(msg, name) + msgTimestamp(msg, name)
+ render(opts, c) + render(opts, c)