diff options
-rw-r--r-- | lib/app.js | 2 | ||||
-rw-r--r-- | lib/render.js | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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) { |