Switch to Jason for json handling.
It's twice as fast and will be the standard in the coming ecto.
This commit is contained in:
parent
c6cd1a56f0
commit
fbc187ac15
4 changed files with 11 additions and 1 deletions
|
|
@ -9,6 +9,9 @@ use Mix.Config
|
|||
config :pleroma,
|
||||
ecto_repos: [Pleroma.Repo]
|
||||
|
||||
config :pleroma, Pleroma.Repo,
|
||||
types: Pleroma.PostgresTypes
|
||||
|
||||
config :pleroma, Pleroma.Upload,
|
||||
uploads: "uploads"
|
||||
|
||||
|
|
@ -61,6 +64,11 @@ config :pleroma, :media_proxy,
|
|||
config :pleroma, :chat,
|
||||
enabled: true
|
||||
|
||||
config :ecto, json_library: Jason
|
||||
|
||||
config :phoenix, :format_encoders,
|
||||
json: Jason
|
||||
|
||||
# Import environment specific config. This must remain at the bottom
|
||||
# of this file so it overrides the configuration defined above.
|
||||
import_config "#{Mix.env}.exs"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue