urbit/pkg/arvo/ren/publish/comments.hoon

15 lines
317 B
Plaintext
Raw Normal View History

2019-07-17 01:59:39 +03:00
/- publish
/+ publish
/= result
/^ (list comment:publish)
/;
|= comments=(map knot comment:publish)
^- (list [comment-info:publish @t])
%+ sort ~(val by comments)
|= [a=comment:publish b=comment:publish]
^- ?
(gte date-created.info.a date-created.info.b)
2019-07-17 01:59:39 +03:00
::
/_ /publish-comment/
result