From 9a6a7b147d98737f81d02aa52fd47025340470d7 Mon Sep 17 00:00:00 2001 From: Logan Allen Date: Mon, 9 Mar 2020 17:05:06 -0700 Subject: [PATCH] publish: update remote metadata group properly and only send invites for unmanaged notebooks --- pkg/arvo/app/publish.hoon | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/pkg/arvo/app/publish.hoon b/pkg/arvo/app/publish.hoon index 9c62e5c1a..c7c636337 100644 --- a/pkg/arvo/app/publish.hoon +++ b/pkg/arvo/app/publish.hoon @@ -749,7 +749,7 @@ |= who=@p ?. (allowed who %read u.book) [%give %kick [/notebook/[u.book]]~ `who]~ - ?: ?=(%remove -.upd) + ?: ?|(?=(%remove -.upd) (is-managed path.upd)) ~ =/ uid (sham %publish who u.book eny.bol) =/ inv=invite @@ -961,18 +961,14 @@ ?: use-preexisting.group ?~ grp !! ?. (is-managed group-path.group) !! - :_ [group-path.group group-path.group] - (generate-invites book (~(del in u.grp) our.bol)) + [~ [group-path.group group-path.group]] :: ?: make-managed.group ?^ grp [~ group-path.group group-path.group] ?. (is-managed group-path.group) !! =/ whole-grp (~(put in invitees.group) our.bol) :_ [group-path.group group-path.group] - %- zing - :~ [(contact-view-create [group-path.group whole-grp title about])]~ - (generate-invites book (~(del in invitees.group) our.bol)) - == + [(contact-view-create [group-path.group whole-grp title about])]~ :: make unmanaged group =* write-path group-path.group =/ read-path (weld write-path /read) @@ -1315,7 +1311,7 @@ ++ metadata-poke |= act=metadata-action ^- card - [%pass / %agent [our.bol %metadata-store] %poke %metadata-action !>(act)] + [%pass / %agent [our.bol %metadata-hook] %poke %metadata-action !>(act)] :: ++ metadata-scry |= [group-path=path app-path=path]