mirror of
https://git.rape.pet/ulith/amputoma.git
synced 2025-02-24 13:43:59 +01:00
Merge branch 'refactoring/fix_render_view' into 'develop'
Fix Controller.render/4 deprecation See merge request pleroma/pleroma!1337
This commit is contained in:
commit
24bcc209f9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue