git ssb

16+

Dominic / patchbay



Commit 82c5123cafb9cea6c68aaa6559910eeef043dab0

Push public blobs on publish

Charles Lehner committed on 7/24/2016, 4:21:02 PM
Parent: bf5b79d17d7fcf89a7cb0ad35bff87d0c66f184a

Files changed

sbot-api.jschanged
sbot-api.jsView
@@ -108,8 +108,16 @@
108108 if(content.recps)
109109 content = ssbKeys.box(content, content.recps.map(function (e) {
110110 return ref.isFeed(e) ? e : e.link
111111 }))
112+ else if(content.mentions)
113+ content.mentions.forEach(function (mention) {
114+ if(ref.isBlob(mention.link)) {
115+ sbot.blobs.push(mention.link, function (err) {
116+ if(err) console.error(err)
117+ })
118+ }
119+ })
112120
113121 feed.add(content, function (err, msg) {
114122 if(err) console.error(err)
115123 else if(!cb) console.log(msg)

Built with git-ssb-web