Fix user link in channel feed
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user