git ssb

4+

Dominic / scuttlebot



Commit aefe1c57d403d6caf0ca29793121221ed00ff9cf

replicate needs a way to switch off following

Dominic Tarr committed on 5/27/2017, 9:05:58 AM
Parent: 526c3b3694629092893d9152b42e5c2ff86e2814

Files changed

plugins/replicate/legacy.jschanged
plugins/replicate/legacy.jsView
@@ -77,10 +77,16 @@
7777 var lastProgress = null
7878
7979 var replicate = {}
8080
81- function request (id) {
82- if(!replicate[id]) {
81+ function request (id, unfollow) {
82+ if(unfollow === false) {
83+ if(replicate[id]) {
84+ delete replicate[id]
85+ newPeers({id:id, sequence: -1})
86+ }
87+ }
88+ else if(!replicate[id]) {
8389 replicate[id] = true
8490 newPeers({id:id, sequence: toSend[id] || 0})
8591 }
8692 }
@@ -364,4 +370,5 @@
364370 }
365371
366372
367373
374+

Built with git-ssb-web