fixed 'source' object in verify_credentials
This commit is contained in:
parent
0cf43391f2
commit
4d71c4b805
2 changed files with 7 additions and 4 deletions
|
|
@ -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: ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue