git ssb

16+

Dominic / patchbay



Commit 4867d771b3d4e27e3e132a5f65ecdfb8990fe925

cb after publish

Dominic Tarr committed on 12/4/2016, 4:09:40 PM
Parent: b85e0e914249723b9baa871cf50ede60a7ba2a55

Files changed

modules_core/crypto.jschanged
modules_core/crypto.jsView
@@ -43,14 +43,15 @@
4343 return ref.isFeed(e) ? e : e.link
4444 }))
4545 }
4646
47- exports.publish = function (content, id) {
47 + exports.publish = function (content, cb) {
4848 if(content.recps)
4949 content = exports.message_box(content)
5050 api.sbot_publish(content, function (err, msg) {
5151 if(err) throw err
5252 console.log('PUBLISHED', msg)
53 + if(cb) cb(err, msg)
5354 })
5455 }
5556
5657 return exports

Built with git-ssb-web