Commit 4867d771b3d4e27e3e132a5f65ecdfb8990fe925
cb after publish
Dominic Tarr committed on 12/4/2016, 4:09:40 PMParent: b85e0e914249723b9baa871cf50ede60a7ba2a55
Files changed
modules_core/crypto.js | changed |
modules_core/crypto.js | ||
---|---|---|
@@ -43,14 +43,15 @@ | ||
43 | 43 … | return ref.isFeed(e) ? e : e.link |
44 | 44 … | })) |
45 | 45 … | } |
46 | 46 … | |
47 | - exports.publish = function (content, id) { | |
47 … | + exports.publish = function (content, cb) { | |
48 | 48 … | if(content.recps) |
49 | 49 … | content = exports.message_box(content) |
50 | 50 … | api.sbot_publish(content, function (err, msg) { |
51 | 51 … | if(err) throw err |
52 | 52 … | console.log('PUBLISHED', msg) |
53 … | + if(cb) cb(err, msg) | |
53 | 54 … | }) |
54 | 55 … | } |
55 | 56 … | |
56 | 57 … | return exports |
Built with git-ssb-web