aboutsummaryrefslogtreecommitdiff
path: root/renderer
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2019-12-22 03:43:25 +0000
committerr <r@freesoftwareextremist.com>2019-12-22 03:43:25 +0000
commit4a83c22261e4e35de7366c9b815ef72d3555e5d9 (patch)
treeaff319a41886530414eabd9dbd9cf6be21f7f871 /renderer
parent2678f33157d147ba548793709cd8fbaabb4eaae2 (diff)
downloadbloat-4a83c22261e4e35de7366c9b815ef72d3555e5d9.tar.gz
bloat-4a83c22261e4e35de7366c9b815ef72d3555e5d9.zip
Fix css and template issues
Diffstat (limited to 'renderer')
-rw-r--r--renderer/renderer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/renderer/renderer.go b/renderer/renderer.go
index cabf92d..8009d99 100644
--- a/renderer/renderer.go
+++ b/renderer/renderer.go
@@ -79,7 +79,7 @@ func (r *renderer) RenderAboutPage(ctx context.Context, writer io.Writer, data *
func EmojiFilter(content string, emojis []mastodon.Emoji) string {
var replacements []string
for _, e := range emojis {
- replacements = append(replacements, ":"+e.ShortCode+":", "<img class=\"status-emoji\" src=\""+e.URL+"\" alt=\""+e.ShortCode+"\" />")
+ replacements = append(replacements, ":"+e.ShortCode+":", "<img class=\"status-emoji\" src=\""+e.URL+"\" alt=\""+e.ShortCode+"\" title=\""+e.ShortCode+"\" />")
}
return strings.NewReplacer(replacements...).Replace(content)
}
@@ -90,7 +90,7 @@ func StatusContentFilter(spoiler string, content string, emojis []mastodon.Emoji
}
var replacements []string
for _, e := range emojis {
- replacements = append(replacements, ":"+e.ShortCode+":", "<img class=\"status-emoji\" src=\""+e.URL+"\" alt=\""+e.ShortCode+"\" />")
+ replacements = append(replacements, ":"+e.ShortCode+":", "<img class=\"status-emoji\" src=\""+e.URL+"\" alt=\""+e.ShortCode+"\" title=\""+e.ShortCode+"\" />")
}
for _, m := range mentions {
replacements = append(replacements, "\""+m.URL+"\"", "\"/user/"+m.ID+"\"")