mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-27 16:24:23 +00:00
Add a bunch of useless HTML to mentions.
This commit is contained in:
parent
afd0ea37f3
commit
b00e230760
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue