From 592c189e8b9a739803faf5faad25e8df91b5556a Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Mon, 31 Jul 2023 20:46:43 -0400 Subject: [PATCH] need to demasto the mention --- fun.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fun.go b/fun.go index 23079ac..d013ac9 100644 --- a/fun.go +++ b/fun.go @@ -178,9 +178,10 @@ func reverbolate(userid int64, honks []*Honk) { } if user != nil { htf.RetargetLink = func(href string) string { + h2 := strings.ReplaceAll(href, "/@", "/users/") for _, m := range h.Mentions { - if href == m.Where { - return "/h?xid=" + url.QueryEscape(href) + if h2 == m.Where || href == m.Where { + return "/h?xid=" + url.QueryEscape(m.Where) } } return href