Merge pull request #5 from SVMBrown/master

use encoding instead of str
master
Dmitri Sotnikov 6 years ago committed by GitHub
commit fec68ef646
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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