aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--lib/app.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index fc0f294..07c96be 100644
--- a/README.md
+++ b/README.md
@@ -81,7 +81,7 @@ To make config options persistent, set them in `~/.ssb/config`, e.g.:
- `blob_base`: base url for links to ssb blobs. default: same as `base`
- `img_base`: base url for blobs embedded as images. default: same as `base`
- `emoji_base`: base url for emoji images. default: same as `base`
-- `encode_msgids`: whether to URL-encode message ids. default: `false`
+- `encode_msgids`: whether to URL-encode message ids in local links. default: `true`
[patchbay]: %s9mSFATE4RGyJx9wgH22lBrvD4CgUQW4yeguSWWjtqc=.sha256
diff --git a/lib/app.js b/lib/app.js
index b12051a..afa914f 100644
--- a/lib/app.js
+++ b/lib/app.js
@@ -29,7 +29,7 @@ function App(sbot, config) {
blob_base: conf.blob_base || conf.img_base || base,
img_base: conf.img_base || base,
emoji_base: conf.emoji_base || (base + 'emoji/'),
- encode_msgids: Boolean(conf.encode_msgids),
+ encode_msgids: conf.encode_msgids == null ? true : Boolean(conf.encode_msgids),
}
sbot.get = memo({cache: lru(100)}, sbot.get)