diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/pleroma/formatter.ex | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/lib/pleroma/formatter.ex b/lib/pleroma/formatter.ex index 9396b1826..3634a8f5b 100644 --- a/lib/pleroma/formatter.ex +++ b/lib/pleroma/formatter.ex @@ -189,7 +189,9 @@ defmodule Pleroma.Formatter do      subs =        subs ++ -        Enum.map(mentions, fn {match, %User{ap_id: ap_id}, uuid} -> +        Enum.map(mentions, fn {match, %User{ap_id: ap_id, info: info}, uuid} -> +          ap_id = info["source_data"]["url"] || ap_id +            short_match = String.split(match, "@") |> tl() |> hd()            {uuid, "<span><a href='#{ap_id}'>@<span>#{short_match}</span></a></span>"}          end) | 
