From c7d4f7024cd5cce7a5fbf064decec6414e54344c Mon Sep 17 00:00:00 2001 From: cel Date: Tue, 24 Mar 2020 14:06:52 -0400 Subject: Fix fallback about image --- lib/render.js | 2 +- lib/serve.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/render.js b/lib/render.js index 31ed74c..5d8fd66 100644 --- a/lib/render.js +++ b/lib/render.js @@ -202,7 +202,7 @@ Render.prototype.markdown = function (text, mentions, opts) { Render.prototype.imageUrl = function (ref) { var m = /^blobstore:(.*)/.exec(ref) if (m) ref = m[1] - ref = ref.replace(/#/, '%23') + ref = String(ref).replace(/#/, '%23') return this.opts.img_base + ref } diff --git a/lib/serve.js b/lib/serve.js index 2beafc4..9515ce3 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -1177,7 +1177,7 @@ Serve.prototype.aboutSelf = function (ext) { type: data.image_type, size: data.image_size } : aboutImageLink - var imageId = image.link || '/static/fallback.png' + var imageId = image.link || '&Zq5m3UOWlFfyUoenOL75ukghOdjmv2yxHREkBNrorWM=.sha256' var description = data.description != null ? data.description === '' ? null : data.description : about.description || null -- cgit v1.2.3