Hall can now perform customizable filtering on incoming messages.

Uses a `|=(telegram ...)` supplied by /app/hall/filter.hoon
This commit is contained in:
Fang 2017-12-12 13:58:02 +01:00
parent df66fb7a51
commit 77d03383b4

View File

@ -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)))