use encoding instead of str

This commit is contained in:
Scot Brown 2018-05-18 16:08:41 -04:00
parent a902a10b21
commit 0c72b8be75

View file

@ -18,7 +18,7 @@
(-> js/process .-env .-MASTODON_BOT_CONFIG)
"config.edn"))
(def config (-> (find-config) fs/readFileSync str edn/read-string))
(def config (-> (find-config) (fs/readFileSync #js {:encoding "UTF-8"}) edn/read-string))
(def content-filter-regexes (mapv re-pattern (-> config :mastodon :content-filters)))