formatting

This commit is contained in:
William Pitcock 2018-08-23 01:34:36 +00:00
parent bc36d40bee
commit a909fe45a6

View file

@ -38,7 +38,8 @@ defmodule Pleroma.Web.TwitterAPI.UserView do
data = %{ data = %{
"created_at" => user.inserted_at |> Utils.format_naive_asctime(), "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), "description_html" => HtmlSanitizeEx.basic_html(user.bio),
"favourites_count" => 0, "favourites_count" => 0,
"followers_count" => user_info[:follower_count], "followers_count" => user_info[:follower_count],