Commit a234f1b2abb6ca0329e9f4bc64cb21a99c9c47a5
Fix user link in channel feed
Anders Rune Jensen committed on 4/15/2017, 10:47:09 AMParent: 27f58a3795183b40043200e73de834d45fee2213
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -101,9 +101,9 @@ | ||
101 | 101 … | var feedId = url.substring(url.lastIndexOf('user/')+5, 100) |
102 | 102 … | console.log("serving feed: " + feedId) |
103 | 103 … | |
104 | 104 … | var opts = defaultOpts |
105 | - | |
105 … | + | |
106 | 106 … | opts.marked = { |
107 | 107 … | gfm: true, |
108 | 108 … | mentions: true, |
109 | 109 … | tables: true, |
@@ -461,9 +461,9 @@ | ||
461 | 461 … | + '<img class="ssb-avatar-image" alt=""' |
462 | 462 … | + ' src="' + opts.img_base + escape(msg.author.image) + '"' |
463 | 463 … | + ' height="32" width="32">' |
464 | 464 … | + '<a class="ssb-avatar-name"' |
465 | - + ' href="' + opts.feed_base + escape(msg.value.author) + '"' | |
465 … | + + ' href="/user/' + escape(msg.value.author) + '"' | |
466 | 466 … | + '>' + msg.author.name + '</a>' |
467 | 467 … | + msgTimestamp(msg, name) |
468 | 468 … | + render(opts, c) |
469 | 469 … | + '</div>' |
Built with git-ssb-web