all repos — honk @ de28a5fb0e5554df8ab515fe70c8c6f81236c6d7

my fork of honk

break down and make mentions look like other mentions
Ted Unangst tedu@tedunangst.com
Tue, 16 Apr 2019 16:10:51 -0400
commit

de28a5fb0e5554df8ab515fe70c8c6f81236c6d7

parent

738f359a6228dcdf9d345c90a58181a827d83735

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M fun.gofun.go

@@ -185,8 +185,9 @@ where := gofish(m)

if where == "" { return m } - return fmt.Sprintf(`<a class="mention" href="%s">%s</a>`, html.EscapeString(where), - html.EscapeString(m)) + who := m[0:1 + strings.IndexByte(m[1:], '@')] + return fmt.Sprintf(`<span class="h-card"><a class="u-url mention" href="%s">%s</a></span>`, + html.EscapeString(where), html.EscapeString(who)) }) return s }