aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/app.js2
-rw-r--r--lib/render.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/app.js b/lib/app.js
index 0adf59a..7d8516a 100644
--- a/lib/app.js
+++ b/lib/app.js
@@ -34,7 +34,7 @@ function App(sbot, config) {
this.opts = {
base: base,
blob_base: conf.blob_base || conf.img_base || base,
- img_base: conf.img_base || base,
+ img_base: conf.img_base || (base + 'image/'),
emoji_base: conf.emoji_base || (base + 'emoji/'),
encode_msgids: conf.encode_msgids == null ? true : Boolean(conf.encode_msgids),
}
diff --git a/lib/render.js b/lib/render.js
index c43ee76..ed011bb 100644
--- a/lib/render.js
+++ b/lib/render.js
@@ -146,7 +146,7 @@ Render.prototype.imageUrl = function (ref) {
var m = /^blobstore:(.*)/.exec(ref)
if (m) ref = m[1]
ref = ref.replace(/#/, '%23')
- return this.opts.img_base + 'image/' + ref
+ return this.opts.img_base + ref
}
Render.prototype.getImageAlt = function (id, fallback) {