formatting
This commit is contained in:
parent
bc36d40bee
commit
a909fe45a6
1 changed files with 2 additions and 1 deletions
|
@ -38,7 +38,8 @@ def render("user.json", %{user: user = %User{}} = assigns) do
|
|||
|
||||
data = %{
|
||||
"created_at" => user.inserted_at |> Utils.format_naive_asctime(),
|
||||
"description" => HtmlSanitizeEx.strip_tags((user.bio || "") |> String.replace("<br>", "\n")),
|
||||
"description" =>
|
||||
HtmlSanitizeEx.strip_tags((user.bio || "") |> String.replace("<br>", "\n")),
|
||||
"description_html" => HtmlSanitizeEx.basic_html(user.bio),
|
||||
"favourites_count" => 0,
|
||||
"followers_count" => user_info[:follower_count],
|
||||
|
|
Loading…
Reference in a new issue