Merge branch 'fix/issue-1676' into 'develop'

[#1676] fixed 'source' object in verify_credentials

See merge request pleroma/pleroma!2492
This commit is contained in:
rinpatch 2020-05-11 22:30:36 +00:00
commit f8190aea5e
2 changed files with 7 additions and 4 deletions

View file

@ -261,7 +261,10 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do
defp prepare_user_bio(%User{bio: ""}), do: ""
defp prepare_user_bio(%User{bio: bio}) when is_binary(bio) do
bio |> String.replace(~r(<br */?>), "\n") |> Pleroma.HTML.strip_tags()
bio
|> String.replace(~r(<br */?>), "\n")
|> Pleroma.HTML.strip_tags()
|> HtmlEntities.decode()
end
defp prepare_user_bio(_), do: ""