From: Roman Chvanikov Date: Wed, 26 Jun 2019 00:27:37 +0000 (+0300) Subject: Fix Controller.render/4 deprecation X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=a7a54068f938d1969b45049cce02fd19731ceab8;p=akkoma Fix Controller.render/4 deprecation --- diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex index 0c22790f2..9b9eca2a1 100644 --- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex @@ -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