From 3572fc31a1187fcc46a1a4276b94deb17ea05d9e Mon Sep 17 00:00:00 2001 From: cel Date: Sun, 6 Aug 2017 16:24:16 -1000 Subject: Fix images on About pages --- lib/about.js | 2 +- lib/serve.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/about.js b/lib/about.js index bb292f6..6d04355 100644 --- a/lib/about.js +++ b/lib/about.js @@ -20,7 +20,7 @@ About.prototype.createAboutOpStream = function (id) { && key !== 'type' && key !== 'recps' }).map(function (key) { - var value = u.toLink(c[key]) + var value = c[key] return { id: msg.key, author: msg.value.author, diff --git a/lib/serve.js b/lib/serve.js index 5f4abff..c4c740c 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -826,7 +826,7 @@ Serve.prototype.about = function (path) { function renderAboutOpContent(op) { if (op.prop === 'image') - return renderAboutOpImage(op.value) + return renderAboutOpImage(u.toLink(op.value)) if (op.prop === 'description') return h('div', {innerHTML: render.markdown(op.value)}).outerHTML if (op.prop === 'title') -- cgit v1.2.3