From c3809754bf089b801ee3ffa3341beb51a8005ca6 Mon Sep 17 00:00:00 2001 From: cel Date: Tue, 7 Mar 2017 10:50:15 -0500 Subject: Push attached blobs on publish --- lib/app.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/app.js') diff --git a/lib/app.js b/lib/app.js index 5d8af70..d994d04 100644 --- a/lib/app.js +++ b/lib/app.js @@ -109,6 +109,10 @@ App.prototype.addBlob = function (cb) { ) } +App.prototype.pushBlob = function (id, cb) { + this.sbot.blobs.push(id, cb) +} + function getMsgWithValue(sbot, id, cb) { sbot.get(id, function (err, value) { if (err) return cb(err) -- cgit v1.2.3