identify hashtag links as hashtag

This commit is contained in:
Ted Unangst 2023-07-02 18:31:51 -04:00
parent 63f6a949bc
commit 6b46a2a597
1 changed files with 1 additions and 1 deletions

2
fun.go
View File

@ -549,7 +549,7 @@ func attoreplacer(m string) string {
} }
func ontoreplacer(h string) string { func ontoreplacer(h string) string {
return fmt.Sprintf(`<a href="https://%s/o/%s">%s</a>`, serverName, return fmt.Sprintf(`<a class="mention hashtag" href="https://%s/o/%s">%s</a>`, serverName,
strings.ToLower(h[1:]), h) strings.ToLower(h[1:]), h)
} }