aboutsummaryrefslogtreecommitdiff
path: root/renderer
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2020-10-30 16:07:11 +0000
committerr <r@freesoftwareextremist.com>2020-10-30 16:07:56 +0000
commit237182c171beafc2d823fa6ea319bdd7e7209190 (patch)
tree73701052e550966ea06c0edd66e4d8bfca118464 /renderer
parentf4e85c571ae92cef7c8cd47f0ee7467bf35d67a2 (diff)
downloadbloat-237182c171beafc2d823fa6ea319bdd7e7209190.tar.gz
bloat-237182c171beafc2d823fa6ea319bdd7e7209190.zip
Use username as title for mentions
Diffstat (limited to 'renderer')
-rw-r--r--renderer/renderer.go2
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)
}