diff options
author | Roman Chvanikov <chvanikoff@pm.me> | 2019-06-26 03:27:37 +0300 |
---|---|---|
committer | Roman Chvanikov <chvanikoff@pm.me> | 2019-06-26 03:28:02 +0300 |
commit | a7a54068f938d1969b45049cce02fd19731ceab8 (patch) | |
tree | e6a53aae8a5988f001fe3c51970ae394829c5c7b | |
parent | d80859731e50393851e6026ad301ed20d2b0db2a (diff) | |
download | pleroma-a7a54068f938d1969b45049cce02fd19731ceab8.tar.gz |
Fix Controller.render/4 deprecation
-rw-r--r-- | lib/pleroma/web/mastodon_api/mastodon_api_controller.ex | 2 |
1 files changed, 1 insertions, 1 deletions
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 |