From 22d12602357c35824f8cf464bd2422b44aee5b11 Mon Sep 17 00:00:00 2001 From: x Date: Wed, 26 Feb 2025 11:49:38 +0700 Subject: [PATCH] rebuild SEA --- sea.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sea.js b/sea.js index 0ecd7615..651775a7 100644 --- a/sea.js +++ b/sea.js @@ -1485,7 +1485,7 @@ // Localize some opt props, and delete the original refs to prevent possible attacks const opt = (msg._.msg || {}).opt || {} - const authenticator = opt.authenticator || (user._).sea; + const authenticator = opt.authenticator || (user._ || {}).sea; const upub = opt.authenticator ? (opt.pub || (user.is || {}).pub || pub) : (user.is || {}).pub; const cert = opt.cert; delete opt.authenticator; delete opt.pub; @@ -1510,7 +1510,7 @@ // if writing to own graph, just allow it if (pub === upub) { - // if (tmp = link_is(val)) (at.sea.own[tmp] = at.sea.own[tmp] || {})[pub] = 1 + if (tmp = link_is(val)) (at.sea.own[tmp] = at.sea.own[tmp] || {})[pub] = 1 next() return }