summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2019-05-22 07:22:19 +0200
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2019-05-22 07:22:19 +0200
commit0e2c215a006c7ca5756e80a357ff6395a4325946 (patch)
tree15295e9811d4c4c23b583d3c457a4633f702ed01 /lib
parentb30b51c3b792cc2aaf39902809bea84bd9b574a9 (diff)
downloadpleroma-0e2c215a006c7ca5756e80a357ff6395a4325946.tar.gz
pleroma-0e2c215a006c7ca5756e80a357ff6395a4325946.zip
MastoAPI AccountView: fill source.note with plaintext version of note
Closes: https://git.pleroma.social/pleroma/pleroma/issues/926
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 134c07b7e..b82d3319b 100644
--- a/lib/pleroma/web/mastodon_api/views/account_view.ex
+++ b/lib/pleroma/web/mastodon_api/views/account_view.ex
@@ -112,7 +112,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do
fields: fields,
bot: bot,
source: %{
- note: "",
+ note: HTML.strip_tags((user.bio || "") |> String.replace("<br>", "\n")),
sensitive: false,
pleroma: %{}
},