aboutsummaryrefslogtreecommitdiff
path: root/lib/app.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-11-16 11:01:20 -0500
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-11-16 11:01:43 -0500
commit5a8a31c7e4523ef4de4c20e28443f9ea18961ce4 (patch)
treeada939815c5f4e20d1ea7eef20a8ae64ed3a2817 /lib/app.js
parent3652f333b559c988ab93f1454a240588b47a598f (diff)
downloadpatchfoo-5a8a31c7e4523ef4de4c20e28443f9ea18961ce4.tar.gz
patchfoo-5a8a31c7e4523ef4de4c20e28443f9ea18961ce4.zip
Allow specifying img_base without prefix
Diffstat (limited to 'lib/app.js')
-rw-r--r--lib/app.js2
1 files changed, 1 insertions, 1 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),
}