aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-08-06 16:24:16 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-08-15 13:03:27 -1000
commit3572fc31a1187fcc46a1a4276b94deb17ea05d9e (patch)
treedad99c843543da0396ffab704232639689af372e
parent019e623c21d380e10ac78cd88514480b92ff7be3 (diff)
downloadpatchfoo-3572fc31a1187fcc46a1a4276b94deb17ea05d9e.tar.gz
patchfoo-3572fc31a1187fcc46a1a4276b94deb17ea05d9e.zip
Fix images on About pages
-rw-r--r--lib/about.js2
-rw-r--r--lib/serve.js2
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')