identify hashtag links as hashtag
Ted Unangst tedu@tedunangst.com
Sun, 02 Jul 2023 18:31:51 -0400
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
fun.go
→
fun.go
@@ -549,7 +549,7 @@ return fmt.Sprintf(fill, html.EscapeString(where), html.EscapeString(who))
} 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) }