1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Web.MastodonAPI.Admin.AccountView do
8 alias Pleroma.Web.MastodonAPI.Admin.AccountView
10 def render("index.json", %{users: users, count: count, page_size: page_size}) do
12 users: render_many(users, AccountView, "show.json", as: :user),
18 def render("show.json", %{user: user}) do
21 "nickname" => user.nickname,
22 "deactivated" => user.info.deactivated