Fix Controller.render/4 deprecation
authorRoman Chvanikov <chvanikoff@pm.me>
Wed, 26 Jun 2019 00:27:37 +0000 (03:27 +0300)
committerRoman Chvanikov <chvanikoff@pm.me>
Wed, 26 Jun 2019 00:28:02 +0000 (03:28 +0300)
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex

index 0c22790f27d739567f86d71e85a02fea7318ba03..9b9eca2a10da11c7888b90f4949182b07cff090e 100644 (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