Fix Controller.render/4 deprecation

This commit is contained in:
Roman Chvanikov 2019-06-26 03:27:37 +03:00
parent d80859731e
commit a7a54068f9

View file

@ -844,7 +844,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
conn
|> put_view(AccountView)
|> render(AccountView, "accounts.json", %{for: user, users: users, as: :user})
|> render("accounts.json", %{for: user, users: users, as: :user})
else
_ -> json(conn, [])
end