mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-16 10:49:26 +03:00
31 lines
801 B
Plaintext
31 lines
801 B
Plaintext
|
/- spider,
|
||
|
metadata=metadata-store,
|
||
|
*group,
|
||
|
inv=invite-store,
|
||
|
store=group-store,
|
||
|
pull-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)
|
||
|
?> ?=(%leave -.action)
|
||
|
;< =bowl:spider bind:m get-bowl:strandio
|
||
|
?> =(our.bowl entity.resource.action)
|
||
|
=* rid resource.action
|
||
|
=/ pull-hook-act=cage
|
||
|
:- %pull-hook-action
|
||
|
!> ^- action:pull-hook
|
||
|
[%remove rid]
|
||
|
;< ~ bind:m (cleanup-md:view rid)
|
||
|
;< ~ bind:m (poke-our %group-store %group-update !>([%remove-group rid ~]))
|
||
|
;< ~ bind:m (poke-our %metadata-pull-hook pull-hook-act)
|
||
|
;< ~ bind:m (poke-our %group-pull-hook pull-hook-act)
|
||
|
(pure:m !>(~))
|