Merge pull request #5 from SVMBrown/master

use encoding instead of str
This commit is contained in:
Dmitri Sotnikov 2018-05-18 17:11:13 -04:00 committed by GitHub
commit fec68ef646
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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