mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 01:52:42 +03:00
graph-validator-post: built initial graph-validator for group feed
This commit is contained in:
parent
5f24254793
commit
5dd27ebf59
30
pkg/arvo/mar/graph/validator/post.hoon
Normal file
30
pkg/arvo/mar/graph/validator/post.hoon
Normal file
@ -0,0 +1,30 @@
|
||||
/- *post, met=metadata-store
|
||||
|_ i=indexed-post
|
||||
++ grow
|
||||
|%
|
||||
++ noun i
|
||||
++ graph-permissions-add
|
||||
|= vip=vip-metadata:met
|
||||
?: ?=([@ ~] index.p.i)
|
||||
[%yes %yes %no]
|
||||
[%yes %yes ?:(?=(%reader-comments vip) %yes %no)]
|
||||
::
|
||||
++ graph-permissions-remove
|
||||
|= vip=vip-metadata:met
|
||||
[%yes %self %self]
|
||||
:: +notification-kind: no notifications for now
|
||||
::
|
||||
++ notification-kind ~
|
||||
--
|
||||
++ grab
|
||||
|%
|
||||
:: +noun: validate post
|
||||
::
|
||||
++ noun
|
||||
|= p=*
|
||||
=/ ip ;;(indexed-post p)
|
||||
?> ?=(^ contents.p.ip)
|
||||
--
|
||||
::
|
||||
++ grad %noun
|
||||
--
|
@ -33,7 +33,7 @@
|
||||
--
|
||||
++ grab
|
||||
|%
|
||||
:: +noun: validate publish post
|
||||
:: +noun: validate publish note
|
||||
::
|
||||
++ noun
|
||||
|= p=*
|
||||
|
Loading…
Reference in New Issue
Block a user