slight tweak? Let's see how long it lasts.

This commit is contained in:
Mark Nadal 2021-01-17 02:52:54 -08:00
parent 6708a180e7
commit cc4f92f2db

1
gun.js
View File

@ -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 }