From 7ef25848b38465fe70b65ab91bf905ae927d4d7c Mon Sep 17 00:00:00 2001 From: cel Date: Mon, 24 Sep 2018 19:37:23 -1000 Subject: Link ssb-web updates to root message, including name --- lib/render-msg.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'lib/render-msg.js') diff --git a/lib/render-msg.js b/lib/render-msg.js index 694f8d0..90fa5a0 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -1791,15 +1791,15 @@ RenderMsg.prototype.webRoot = function (cb) { var self = this var site = u.isRef(this.c.site) && this.c.site var root = u.isRef(this.c.root) && this.c.root - self.wrapMini(h('span', - 'updated website ', - site ? [ - h('a', {href: this.toUrl('/web/' + encodeURIComponent(site))}, site.substr(0, 8) + '…'), ' ' - ] : '', - root ? [ - 'to ', h('a', {href: this.toUrl(root)}, root.substr(0, 8) + '…') - ] : '' - ), cb) + self.link(site, function (err, siteLink) { + self.wrapMini(h('span', + 'updated website ', + siteLink || '', ' ', + root ? [ + 'to ', h('a', {href: self.toUrl(root)}, root.substr(0, 8) + '…') + ] : '' + ), cb) + }) } function dateSpan(date) { -- cgit v1.2.3