mobilizon/lib/eventos_web/views/account_view.ex
Thomas Citharel 92d2045735 end
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-01-09 17:52:26 +01:00

16 lines
369 B
Elixir

defmodule EventosWeb.AccountView do
use EventosWeb, :view
def render("account.json", %{"account": account}) do
%{
username: account.username,
description: account.description,
display_name: account.display_name,
domain: account.domain,
suspended: account.suspended,
uri: account.uri,
url: account.url,
}
end
end