mirror of
https://github.com/unclebob/more-speech.git
synced 2024-09-30 10:30:56 +00:00
Restrict subscriptions to get the kinds we actually want.
This commit is contained in:
parent
b4c2469619
commit
04194cd068
@ -47,8 +47,9 @@
|
|||||||
(send-subscription relay since now nil))
|
(send-subscription relay since now nil))
|
||||||
|
|
||||||
([relay since now who]
|
([relay since now who]
|
||||||
(let [past-filter {"since" since "until" now}
|
(let [kind-filter {"kinds" [0 1 2 3 4 7 9735]}
|
||||||
future-filter {"since" now}
|
past-filter (merge kind-filter {"since" since "until" now})
|
||||||
|
future-filter (merge kind-filter {"since" now})
|
||||||
short-who (map #(subs % 0 10) who)
|
short-who (map #(subs % 0 10) who)
|
||||||
trustees (contact-list/get-trustees)
|
trustees (contact-list/get-trustees)
|
||||||
trustees (if (empty? trustees) [] (map util/hexify trustees))
|
trustees (if (empty? trustees) [] (map util/hexify trustees))
|
||||||
|
Loading…
Reference in New Issue
Block a user