Commit 24bcc209 authored by kaniini's avatar kaniini

Merge branch 'refactoring/fix_render_view' into 'develop'

Fix Controller.render/4 deprecation

See merge request !1337
parents 9f8e645d a7a54068
Pipeline #13882 passed with stages
in 62 minutes and 37 seconds
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment