aboutsummaryrefslogtreecommitdiff
path: root/lib/app.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-04-08 18:29:52 -0700
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-04-08 20:15:45 -0700
commit57c80659bb02d029c077c0658b1353cfcbe41e30 (patch)
tree103409f2c38e72e2b7f23d08131db5f8fbfe0e0c /lib/app.js
parent59c63c6542172be5a2b93a236b2eff928e742d58 (diff)
downloadpatchfoo-57c80659bb02d029c077c0658b1353cfcbe41e30.tar.gz
patchfoo-57c80659bb02d029c077c0658b1353cfcbe41e30.zip
Improve message title compuation
Prefer About info for non-textual messages
Diffstat (limited to 'lib/app.js')
-rw-r--r--lib/app.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/app.js b/lib/app.js
index 6314284..b3cd1b1 100644
--- a/lib/app.js
+++ b/lib/app.js
@@ -146,6 +146,7 @@ App.prototype.getReverseNameSync = function (name) {
}
function getMsgWithValue(sbot, id, cb) {
+ if (!id) return cb()
sbot.get(id, function (err, value) {
if (err) return cb(err)
cb(null, {key: id, value: value})