forked from AkkomaGang/akkoma
mastodon api: sanitize the bio HTML
This commit is contained in:
parent
c1b8a6a73b
commit
175f0bebbc
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ def render("account.json", %{user: user}) do
|
||||||
followers_count: user_info.follower_count,
|
followers_count: user_info.follower_count,
|
||||||
following_count: user_info.following_count,
|
following_count: user_info.following_count,
|
||||||
statuses_count: user_info.note_count,
|
statuses_count: user_info.note_count,
|
||||||
note: user.bio || "",
|
note: HtmlSanitizeEx.basic_html(user.bio) || "",
|
||||||
url: user.ap_id,
|
url: user.ap_id,
|
||||||
avatar: image,
|
avatar: image,
|
||||||
avatar_static: image,
|
avatar_static: image,
|
||||||
|
|
Loading…
Reference in a new issue