git ssb

3+

cel / ssb-publishguard



Tree: 38dcebb3094e403684ce1dd8cd3d5fc5f8ef1410

Files: 38dcebb3094e403684ce1dd8cd3d5fc5f8ef1410 / index.js

511 bytesRaw
1var confirmer = require('./confirm')
2
3exports.name = 'publishguard'
4exports.version = '1.0.0'
5exports.manifest = {
6}
7exports.init = function (sbot, config) {
8 setTimeout(function () {
9 var confirm = confirmer({
10 publish: sbot.publish,
11 privatePublish: sbot.private && sbot.private.publish,
12 config: config.publishguard
13 })
14 sbot.publish = confirm.publish
15 if (sbot.private) sbot.private.publish = confirm.privatePublish
16 console.log('[' + exports.name + '] enabled')
17 }, 1000)
18}
19

Built with git-ssb-web