mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 18:12:47 +03:00
Merge pull request #2428 from urbit/remote-pub-metadata
publish: update remote metadata group properly and only send invites …
This commit is contained in:
commit
305a4874e2
@ -749,7 +749,7 @@
|
|||||||
|= who=@p
|
|= who=@p
|
||||||
?. (allowed who %read u.book)
|
?. (allowed who %read u.book)
|
||||||
[%give %kick [/notebook/[u.book]]~ `who]~
|
[%give %kick [/notebook/[u.book]]~ `who]~
|
||||||
?: ?=(%remove -.upd)
|
?: ?|(?=(%remove -.upd) (is-managed path.upd))
|
||||||
~
|
~
|
||||||
=/ uid (sham %publish who u.book eny.bol)
|
=/ uid (sham %publish who u.book eny.bol)
|
||||||
=/ inv=invite
|
=/ inv=invite
|
||||||
@ -961,18 +961,14 @@
|
|||||||
?: use-preexisting.group
|
?: use-preexisting.group
|
||||||
?~ grp !!
|
?~ grp !!
|
||||||
?. (is-managed group-path.group) !!
|
?. (is-managed group-path.group) !!
|
||||||
:_ [group-path.group group-path.group]
|
[~ [group-path.group group-path.group]]
|
||||||
(generate-invites book (~(del in u.grp) our.bol))
|
|
||||||
::
|
::
|
||||||
?: make-managed.group
|
?: make-managed.group
|
||||||
?^ grp [~ group-path.group group-path.group]
|
?^ grp [~ group-path.group group-path.group]
|
||||||
?. (is-managed group-path.group) !!
|
?. (is-managed group-path.group) !!
|
||||||
=/ whole-grp (~(put in invitees.group) our.bol)
|
=/ whole-grp (~(put in invitees.group) our.bol)
|
||||||
:_ [group-path.group group-path.group]
|
:_ [group-path.group group-path.group]
|
||||||
%- zing
|
[(contact-view-create [group-path.group whole-grp title about])]~
|
||||||
:~ [(contact-view-create [group-path.group whole-grp title about])]~
|
|
||||||
(generate-invites book (~(del in invitees.group) our.bol))
|
|
||||||
==
|
|
||||||
:: make unmanaged group
|
:: make unmanaged group
|
||||||
=* write-path group-path.group
|
=* write-path group-path.group
|
||||||
=/ read-path (weld write-path /read)
|
=/ read-path (weld write-path /read)
|
||||||
@ -1315,7 +1311,7 @@
|
|||||||
++ metadata-poke
|
++ metadata-poke
|
||||||
|= act=metadata-action
|
|= act=metadata-action
|
||||||
^- card
|
^- card
|
||||||
[%pass / %agent [our.bol %metadata-store] %poke %metadata-action !>(act)]
|
[%pass / %agent [our.bol %metadata-hook] %poke %metadata-action !>(act)]
|
||||||
::
|
::
|
||||||
++ metadata-scry
|
++ metadata-scry
|
||||||
|= [group-path=path app-path=path]
|
|= [group-path=path app-path=path]
|
||||||
|
Loading…
Reference in New Issue
Block a user