mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-05 22:03:50 +03:00
Hall can now perform customizable filtering on incoming messages.
Uses a `|=(telegram ...)` supplied by /app/hall/filter.hoon
This commit is contained in:
parent
df66fb7a51
commit
77d03383b4
@ -11,6 +11,11 @@
|
||||
/- hall :: structures
|
||||
/+ hall, hall-legacy :: libraries
|
||||
/= seed /~ !>(.)
|
||||
/= filter-gram
|
||||
/^ $-(telegram:hall telegram:hall)
|
||||
/| /: /%/filter /!noun/
|
||||
/~ |=(t/telegram:hall t)
|
||||
==
|
||||
::
|
||||
::::
|
||||
::
|
||||
@ -1292,6 +1297,7 @@
|
||||
?. (so-admire aut.gam) +>
|
||||
:: clean up the message to conform to our rules.
|
||||
=. sep.gam (so-sane sep.gam)
|
||||
=. gam (filter-gram gam)
|
||||
:: if we already have it, ignore.
|
||||
=+ old=(~(get by known) uid.gam)
|
||||
?. &(?=(^ old) =(gam (snag u.old grams)))
|
||||
|
Loading…
Reference in New Issue
Block a user