identify hashtag links as hashtag
This commit is contained in:
parent
63f6a949bc
commit
6b46a2a597
2
fun.go
2
fun.go
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue