git ssb

0+

ev / microbay



forked from Dominic / patchbay

Commit fd8c2099a42934b27ac0a705d4377d5e692a6f7d

Merge branch 'blobs-push'

Dominic Tarr committed on 7/25/2016, 5:24:16 AM
Parent: 722cbe26ce4fde5590323faa3abb3fc2b1db248a
Parent: 82c5123cafb9cea6c68aaa6559910eeef043dab0

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