aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-05-22 05:39:01 +0000
committerrinpatch <rinpatch@sdf.org>2019-05-22 05:39:01 +0000
commitcdac5efd10bba6e767c59f17e71f2eb8f3f2d601 (patch)
tree7a8e7f453046cfe2d98e7cfdbe7a352b6d5559fe /lib
parent79c2cef2fbcbac99cce001376b8231e0e0a9adf4 (diff)
parent0e2c215a006c7ca5756e80a357ff6395a4325946 (diff)
downloadpleroma-cdac5efd10bba6e767c59f17e71f2eb8f3f2d601.tar.gz
Merge branch 'bugfix/account_view_source.note' into 'develop'
MastoAPI AccountView: fill source.note with plaintext version of note Closes #926 See merge request pleroma/pleroma!1189
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: %{}
},