2019-06-05 00:29:53 +03:00
|
|
|
::
|
|
|
|
:::: /hoon/action/write/mar
|
|
|
|
::
|
|
|
|
/? 309
|
|
|
|
/- write
|
|
|
|
=, format
|
|
|
|
::
|
|
|
|
|_ act=action:write
|
|
|
|
::
|
|
|
|
++ grow
|
|
|
|
|%
|
|
|
|
++ tank >act<
|
|
|
|
--
|
|
|
|
::
|
|
|
|
++ grab
|
|
|
|
|%
|
|
|
|
++ noun action:write
|
|
|
|
++ json
|
|
|
|
|= jon=^json
|
|
|
|
%- action:write
|
|
|
|
=< (action jon)
|
|
|
|
|%
|
|
|
|
++ action
|
|
|
|
%- of:dejs
|
|
|
|
:~ new-collection+new-collection
|
|
|
|
new-post+new-post
|
|
|
|
new-comment+new-comment
|
|
|
|
::
|
2019-06-21 23:24:33 +03:00
|
|
|
delete-collection+delete-collection
|
|
|
|
delete-post+delete-post
|
|
|
|
delete-comment+delete-comment
|
2019-06-05 00:29:53 +03:00
|
|
|
::
|
|
|
|
edit-collection+edit-collection
|
|
|
|
edit-post+edit-post
|
|
|
|
::
|
|
|
|
invite+invite
|
2019-06-21 23:24:33 +03:00
|
|
|
reject-invite+reject-invite
|
2019-06-05 00:29:53 +03:00
|
|
|
::
|
|
|
|
serve+serve
|
|
|
|
unserve+unserve
|
|
|
|
::
|
|
|
|
subscribe+subscribe
|
|
|
|
unsubscribe+unsubscribe
|
|
|
|
::
|
2019-06-21 23:24:33 +03:00
|
|
|
read+read
|
2019-06-05 00:29:53 +03:00
|
|
|
==
|
|
|
|
::
|
|
|
|
++ new-collection
|
|
|
|
%- ot:dejs
|
|
|
|
:~ name+(su:dejs sym)
|
|
|
|
title+so:dejs
|
|
|
|
comments+comment-config
|
|
|
|
allow-edit+edit-config
|
|
|
|
perm+perm-config
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ new-post
|
|
|
|
%- ot:dejs
|
2019-06-17 21:39:53 +03:00
|
|
|
:~ who+(su:dejs fed:ag)
|
|
|
|
coll+(su:dejs sym)
|
2019-06-05 00:29:53 +03:00
|
|
|
name+(su:dejs sym)
|
|
|
|
title+so:dejs
|
|
|
|
comments+comment-config
|
|
|
|
perm+perm-config
|
|
|
|
content+so:dejs
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ new-comment
|
|
|
|
%- ot:dejs
|
2019-06-17 21:39:53 +03:00
|
|
|
:~ who+(su:dejs fed:ag)
|
|
|
|
coll+(su:dejs sym)
|
2019-06-05 00:29:53 +03:00
|
|
|
name+(su:dejs sym)
|
|
|
|
content+so:dejs
|
|
|
|
==
|
|
|
|
::
|
2019-06-21 23:24:33 +03:00
|
|
|
++ delete-collection (of:dejs coll+(su:dejs sym) ~)
|
|
|
|
::
|
|
|
|
++ delete-post
|
|
|
|
%- ot:dejs
|
|
|
|
:~ coll+(su:dejs sym)
|
|
|
|
post+(su:dejs sym)
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ delete-comment
|
|
|
|
%- ot:dejs
|
|
|
|
:~ coll+(su:dejs sym)
|
|
|
|
post+(su:dejs sym)
|
|
|
|
comment+(su:dejs sym)
|
|
|
|
==
|
|
|
|
::
|
2019-06-05 00:29:53 +03:00
|
|
|
++ edit-collection
|
|
|
|
%- ot:dejs
|
|
|
|
:~ name+(su:dejs sym)
|
|
|
|
title+so:dejs
|
|
|
|
comments+comment-config
|
|
|
|
allow-edit+edit-config
|
|
|
|
perm+perm-config
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ edit-post
|
|
|
|
%- ot:dejs
|
2019-06-17 21:39:53 +03:00
|
|
|
:~ who+(su:dejs fed:ag)
|
|
|
|
coll+(su:dejs sym)
|
2019-06-05 00:29:53 +03:00
|
|
|
name+(su:dejs sym)
|
|
|
|
title+so:dejs
|
|
|
|
comments+comment-config
|
|
|
|
perm+perm-config
|
|
|
|
content+so:dejs
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ edit-comment
|
|
|
|
%- ot:dejs
|
|
|
|
:~ coll+(su:dejs sym)
|
|
|
|
name+(su:dejs sym)
|
|
|
|
id+(su:dejs sym)
|
|
|
|
content+so:dejs
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ comment-config
|
|
|
|
%- su:dejs
|
|
|
|
;~(pose (jest %open) (jest %closed) (jest %none))
|
|
|
|
::
|
|
|
|
++ edit-config
|
|
|
|
%- su:dejs
|
|
|
|
;~(pose (jest %post) (jest %comment) (jest %all) (jest %none))
|
|
|
|
::
|
|
|
|
++ perm-config
|
|
|
|
%- ot:dejs
|
|
|
|
:~ :- %read
|
|
|
|
%- ot:dejs
|
|
|
|
:~ mod+(su:dejs ;~(pose (jest %black) (jest %white)))
|
|
|
|
who+whoms
|
|
|
|
==
|
|
|
|
:- %write
|
|
|
|
%- ot:dejs
|
|
|
|
:~ mod+(su:dejs ;~(pose (jest %black) (jest %white)))
|
|
|
|
who+whoms
|
|
|
|
== ==
|
|
|
|
::
|
|
|
|
++ whoms
|
|
|
|
|= jon=^json
|
|
|
|
^- (set whom:clay)
|
|
|
|
=/ x ((ar:dejs (su:dejs fed:ag)) jon)
|
|
|
|
%- (set whom:clay)
|
|
|
|
%- ~(run in (sy x))
|
|
|
|
|=(w=@ [& w])
|
|
|
|
::
|
|
|
|
++ invite
|
|
|
|
%- ot:dejs
|
|
|
|
:~ coll+(su:dejs sym)
|
2019-06-21 23:24:33 +03:00
|
|
|
title+so:dejs
|
2019-06-05 00:29:53 +03:00
|
|
|
who+(ar:dejs (su:dejs fed:ag))
|
|
|
|
==
|
|
|
|
::
|
2019-06-21 23:24:33 +03:00
|
|
|
++ reject-invite
|
|
|
|
%- ot:dejs
|
|
|
|
:~ who+(su:dejs fed:ag)
|
|
|
|
coll+(su:dejs sym)
|
|
|
|
==
|
|
|
|
::
|
2019-06-05 00:29:53 +03:00
|
|
|
++ serve
|
|
|
|
%- ot:dejs
|
|
|
|
:~ coll+(su:dejs sym)
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ unserve
|
|
|
|
%- ot:dejs
|
|
|
|
:~ coll+(su:dejs sym)
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ subscribe
|
|
|
|
%- ot:dejs
|
|
|
|
:~ who+(su:dejs fed:ag)
|
|
|
|
coll+(su:dejs sym)
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ unsubscribe
|
|
|
|
%- ot:dejs
|
|
|
|
:~ who+(su:dejs fed:ag)
|
|
|
|
coll+(su:dejs sym)
|
|
|
|
==
|
|
|
|
::
|
2019-06-21 23:24:33 +03:00
|
|
|
++ read
|
|
|
|
%- ot:dejs
|
|
|
|
:~ who+(su:dejs fed:ag)
|
|
|
|
coll+(su:dejs sym)
|
|
|
|
post+(su:dejs sym)
|
|
|
|
==
|
|
|
|
::
|
2019-06-05 00:29:53 +03:00
|
|
|
--
|
|
|
|
--
|
|
|
|
--
|