aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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