Run mix format
[akkoma] / lib / pleroma / web / twitter_api / views / user_view.ex
index 25fda1aa80af3cf017f9c9977d10d392af122124..32f93153dc6b61699d5d0174b165a71b92d5205f 100644 (file)
@@ -38,7 +38,8 @@ defmodule Pleroma.Web.TwitterAPI.UserView 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],