urbit/pkg/arvo/ted/group/delete.hoon

32 lines
861 B
Plaintext
Raw Normal View History

2021-02-01 06:43:40 +03:00
/- spider,
metadata=metadata-store,
*group,
inv=invite-store,
store=group-store,
push-hook
/+ strandio, resource, view=group-view
=>
|%
++ strand strand:spider
++ poke poke:strandio
++ poke-our poke-our:strandio
--
^- thread:spider
|= arg=vase
=/ m (strand ,vase)
=+ !<([~ =action:view] arg)
?> ?=(%remove -.action)
=* rid resource.action
2021-02-01 06:43:40 +03:00
;< =bowl:spider bind:m get-bowl:strandio
?> =(our.bowl entity.rid)
2021-02-01 06:43:40 +03:00
=/ push-hook-act=cage
:- %push-hook-action
!> ^- action:push-hook
[%remove resource.action]
;< ~ bind:m (cleanup-md:view rid)
;< ~ bind:m (poke-our %group-store %group-update !>([%remove-group rid ~]))
;< ~ bind:m (poke-our %metadata-push-hook push-hook-act)
;< ~ bind:m (poke-our %contact-push-hook push-hook-act)
2021-02-01 06:43:40 +03:00
;< ~ bind:m (poke-our %group-push-hook push-hook-act)
(pure:m !>(~))