diff options
author | r <r@freesoftwareextremist.com> | 2020-10-30 16:07:11 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2020-10-30 16:07:56 +0000 |
commit | 237182c171beafc2d823fa6ea319bdd7e7209190 (patch) | |
tree | 73701052e550966ea06c0edd66e4d8bfca118464 | |
parent | f4e85c571ae92cef7c8cd47f0ee7467bf35d67a2 (diff) | |
download | bloat-237182c171beafc2d823fa6ea319bdd7e7209190.tar.gz bloat-237182c171beafc2d823fa6ea319bdd7e7209190.zip |
Use username as title for mentions
-rw-r--r-- | renderer/renderer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/renderer/renderer.go b/renderer/renderer.go index f90e8dc..3d4685f 100644 --- a/renderer/renderer.go +++ b/renderer/renderer.go @@ -61,7 +61,7 @@ func statusContentFilter(spoiler string, content string, replacements = append(replacements, ":"+e.ShortCode+":", r) } for _, m := range mentions { - replacements = append(replacements, "\""+m.URL+"\"", "\"/user/"+m.ID+"\"") + replacements = append(replacements, `"`+m.URL+`"`, `"/user/`+m.ID+`" title="@`+m.Acct+`"`) } return strings.NewReplacer(replacements...).Replace(content) } |