From e421c0ba2034bfeaeaa8ffe0fd7cdf27e6954153 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sun, 1 Dec 2019 13:16:10 -0500 Subject: [PATCH] only need the handle rename logic for !local --- fun.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/fun.go b/fun.go index 2cbc237..31b6435 100644 --- a/fun.go +++ b/fun.go @@ -72,13 +72,15 @@ func reverbolate(userid int64, honks []*Honk) { h.Noise = ontologize(h.Noise) } h.Username, h.Handle = handles(h.Honker) - short := shortname(userid, h.Honker) - if short != "" { - h.Username = short - } else { - h.Username = h.Handle - if len(h.Username) > 20 { - h.Username = h.Username[:20] + ".." + if !local { + short := shortname(userid, h.Honker) + if short != "" { + h.Username = short + } else { + h.Username = h.Handle + if len(h.Username) > 20 { + h.Username = h.Username[:20] + ".." + } } } if h.URL == "" {