git ssb

3+

cel / ssb-publishguard



Commit 38dcebb3094e403684ce1dd8cd3d5fc5f8ef1410

Increase robustness

cel committed on 11/27/2018, 9:08:03 AM
Parent: f51503cfd1faede85cf456ab7577b349e270c959

Files changed

index.jschanged
index.jsView
@@ -7,12 +7,12 @@
77 exports.init = function (sbot, config) {
88 setTimeout(function () {
99 var confirm = confirmer({
1010 publish: sbot.publish,
11- privatePublish: sbot.private.publish,
11 + privatePublish: sbot.private && sbot.private.publish,
1212 config: config.publishguard
1313 })
1414 sbot.publish = confirm.publish
15- sbot.private.publish = confirm.privatePublish
15 + if (sbot.private) sbot.private.publish = confirm.privatePublish
1616 console.log('[' + exports.name + '] enabled')
1717 }, 1000)
1818 }

Built with git-ssb-web