mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-03 02:35:52 +03:00
contact-pull-hook: give nacks on subscription
This commit is contained in:
parent
60b53ccbd5
commit
22004a3ea2
@ -31,13 +31,20 @@
|
||||
++ on-arvo on-arvo:def
|
||||
++ on-fail on-fail:def
|
||||
++ on-agent on-agent:def
|
||||
++ on-watch on-watch:def
|
||||
++ on-watch
|
||||
|= =path
|
||||
?. ?=([%nacks ~] path)
|
||||
(on-watch:def path)
|
||||
?> (team:title [src our]:bowl)
|
||||
`this
|
||||
::
|
||||
++ on-leave on-leave:def
|
||||
++ resource-for-update resource-for-update:con
|
||||
++ on-pull-nack
|
||||
|= [=resource =tang]
|
||||
^- (quip card _this)
|
||||
[~ this]
|
||||
:_ this
|
||||
[%give %fact ~[/nacks] resource+!>(resource)]~
|
||||
::
|
||||
++ on-pull-kick |=(=resource `/)
|
||||
--
|
||||
|
@ -20,6 +20,22 @@
|
||||
::
|
||||
/- *pull-hook
|
||||
/+ default-agent, resource
|
||||
|%
|
||||
:: JSON conversions
|
||||
++ dejs
|
||||
=, dejs:format
|
||||
|%
|
||||
++ action
|
||||
%- of
|
||||
:~ add+add
|
||||
==
|
||||
++ add
|
||||
%- ot
|
||||
:~ ship+(su ;~(pfix sig fed:ag))
|
||||
resource+dejs:resource
|
||||
==
|
||||
--
|
||||
--
|
||||
::
|
||||
::
|
||||
|%
|
||||
|
@ -1,12 +1,13 @@
|
||||
/- *pull-hook
|
||||
|_ act=action
|
||||
/+ pull-hook
|
||||
|_ =action:pull-hook
|
||||
++ grab
|
||||
|%
|
||||
++ noun action
|
||||
++ noun action:pull-hook
|
||||
++ json action:dejs:pull-hook
|
||||
--
|
||||
++ grow
|
||||
|%
|
||||
++ noun act
|
||||
++ noun action
|
||||
--
|
||||
++ grad %noun
|
||||
--
|
||||
|
@ -4,7 +4,9 @@
|
||||
++ grow
|
||||
|%
|
||||
++ noun rid
|
||||
++ json (enjs:resource rid)
|
||||
++ json
|
||||
%+ frond:enjs:format %resource
|
||||
(enjs:resource rid)
|
||||
--
|
||||
++ grab
|
||||
|%
|
||||
|
Loading…
Reference in New Issue
Block a user