logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma
commit: 4b06e46a3a97d6a14c7013fa952eade08ff7aef5
parent: d5a13c10ac6a9a5f8dbb1932ffc85260f079a2dc
Author: lambda <pleromagit@rogerbraun.net>
Date:   Mon, 11 Dec 2017 16:21:43 +0000

Merge branch 'fix/tootdon-mentions' into 'develop'

Fix Tootdon linking the whole status when mentioning someone.

See merge request pleroma/pleroma!39

Diffstat:

Mlib/pleroma/web/common_api/utils.ex2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex @@ -95,7 +95,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