mirror of
https://github.com/amark/gun.git
synced 2025-06-11 16:46:43 +00:00
slight tweak? Let's see how long it lasts.
This commit is contained in:
parent
6708a180e7
commit
cc4f92f2db
1
gun.js
1
gun.js
@ -704,6 +704,7 @@
|
||||
var put = msg.put||'', link = put['=']||put[':'], zoo;
|
||||
if(cat.soul || (cat.has && msg.$$)){ return } // a soul chain never links. If we are a has (property) chain that is linked to a soul chain, we get an echo of those messages. When we do, do not confuse that next layer with ourself, ignore it. The code below does several context changes for safety, but ultimately has to ask ourself for what needs to be loaded next, so we need to make sure what is being loaded is on the correct layer.
|
||||
if(msg.$$$ && !msg.$$){ return } // TODO: And some other conditions?
|
||||
if(msg.$$$ && msg.$$$._.id === cat.id){ return } // TODO: Combine this with above so it is less ugly (code aesthetics).
|
||||
//if(!cat.has && msg.$$$){ return } // TODO: Add safety check for non core chains, like maps?
|
||||
if('string' != typeof (link = valid(link))){ return }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user