summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2020-03-22 16:38:12 +0100
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2020-03-22 16:41:01 +0100
commit15be6ba9c200b2a4ae153d26876be1b5cbb6357e (patch)
treeba8f8970432a2f9975a54ad59148675f5497ec10 /lib
parent7dbf1ffa868e4f5fece298b9ea161e1e11a2ffde (diff)
downloadpleroma-15be6ba9c200b2a4ae153d26876be1b5cbb6357e.tar.gz
pleroma-15be6ba9c200b2a4ae153d26876be1b5cbb6357e.zip
AccountView: fix for other forms of <br> in bio
Closes: https://git.pleroma.social/pleroma/pleroma/issues/1643
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/mastodon_api/views/account_view.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/account_view.ex b/lib/pleroma/web/mastodon_api/views/account_view.ex
index 4ebce73b4..2bf711386 100644
--- a/lib/pleroma/web/mastodon_api/views/account_view.ex
+++ b/lib/pleroma/web/mastodon_api/views/account_view.ex
@@ -115,7 +115,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do
fields: user.fields,
bot: bot,
source: %{
- note: Pleroma.HTML.strip_tags((user.bio || "") |> String.replace("<br>", "\n")),
+ note: (user.bio || "") |> String.replace(~r(<br */?>), "\n") |> Pleroma.HTML.strip_tags(),
sensitive: false,
fields: user.raw_fields,
pleroma: %{