From 723ac49a0ce31c6b0623d4498bacbab328cdc6cd Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 16 Apr 2019 16:10:51 -0400 Subject: [PATCH] break down and make mentions look like other mentions --- fun.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fun.go b/fun.go index 0626412..cf3b726 100644 --- a/fun.go +++ b/fun.go @@ -185,8 +185,9 @@ func obfusbreak(s string) string { if where == "" { return m } - return fmt.Sprintf(`%s`, html.EscapeString(where), - html.EscapeString(m)) + who := m[0:1 + strings.IndexByte(m[1:], '@')] + return fmt.Sprintf(`%s`, + html.EscapeString(where), html.EscapeString(who)) }) return s }