Use AdminAPI.StatusView in api/admin/users
authorEgor Kislitsyn <egor@kislitsyn.com>
Wed, 3 Jun 2020 10:53:46 +0000 (14:53 +0400)
committerEgor Kislitsyn <egor@kislitsyn.com>
Wed, 3 Jun 2020 10:53:46 +0000 (14:53 +0400)
lib/pleroma/web/admin_api/controllers/admin_api_controller.ex

index 9f499e2029907d064f09ee639b7cd24e192a1b81..cc93fb5098a0a2fb14cd5f127a9edc0dcf8b6c96 100644 (file)
@@ -30,7 +30,6 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIController do
   alias Pleroma.Web.AdminAPI.Search
   alias Pleroma.Web.CommonAPI
   alias Pleroma.Web.Endpoint
-  alias Pleroma.Web.MastodonAPI
   alias Pleroma.Web.Router
 
   require Logger
@@ -279,7 +278,7 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIController do
         })
 
       conn
-      |> put_view(MastodonAPI.StatusView)
+      |> put_view(AdminAPI.StatusView)
       |> render("index.json", %{activities: activities, as: :activity})
     else
       _ -> {:error, :not_found}