aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoreal <eal@waifu.club>2017-12-11 18:14:33 +0200
committereal <eal@waifu.club>2017-12-11 18:14:33 +0200
commitb00e230760891d97c5d8c68e9e5c63b1545f10e9 (patch)
tree4cf42c7c516e6e6b37923ab03787d355593d46ac /lib
parentafd0ea37f3284bdfa6ddce99162601615b7ad845 (diff)
downloadpleroma-b00e230760891d97c5d8c68e9e5c63b1545f10e9.tar.gz
Add a bunch of useless HTML to mentions.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/common_api/utils.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex
index 1a23b1ad2..2687d6663 100644
--- a/lib/pleroma/web/common_api/utils.ex
+++ b/lib/pleroma/web/common_api/utils.ex
@@ -91,7 +91,7 @@ defmodule Pleroma.Web.CommonAPI.Utils do
Enum.reduce(mentions, step_one, fn ({match, %User{ap_id: ap_id}, uuid}, text) ->
short_match = String.split(match, "@") |> tl() |> hd()
- String.replace(text, uuid, "<a href='#{ap_id}'>@#{short_match}</a>")
+ String.replace(text, uuid, "<span><a href='#{ap_id}'>@<span>#{short_match}</span></a></span>")
end)
end