diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-08-20 10:30:21 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-08-20 10:30:21 -1000 |
commit | c8ef3a1d10fe170e6a1939bb83e6148c4bdbd72d (patch) | |
tree | a3732ebdf267d39baceb6d444b1d2c28856588a7 | |
parent | 7466990370952e130b2cd79711f4ed2610c24a1f (diff) | |
download | patchfoo-c8ef3a1d10fe170e6a1939bb83e6148c4bdbd72d.tar.gz patchfoo-c8ef3a1d10fe170e6a1939bb83e6148c4bdbd72d.zip |
Default encode_msgids to true
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | lib/app.js | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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 @@ -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) |