aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519>2020-03-24 14:06:52 -0400
committercel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519>2020-03-28 13:55:28 -0400
commitc7d4f7024cd5cce7a5fbf064decec6414e54344c (patch)
tree117049a87397fba95b3bc02afab9fb9d34da8e6c
parent879050c98e1d2cc18f522a16d5b0cb2b82232dca (diff)
downloadpatchfoo-c7d4f7024cd5cce7a5fbf064decec6414e54344c.tar.gz
patchfoo-c7d4f7024cd5cce7a5fbf064decec6414e54344c.zip
Fix fallback about image
-rw-r--r--lib/render.js2
-rw-r--r--lib/serve.js2
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