2017-12-08 09:58:14 +01:00
|
|
|
defmodule EventosWeb.AccountView do
|
|
|
|
use EventosWeb, :view
|
2018-01-09 17:52:26 +01:00
|
|
|
|
|
|
|
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
|
2017-12-08 09:58:14 +01:00
|
|
|
end
|