all repos — honk @ bb785ef93a880ffdf4295adc572cc8a3c7926a19

my fork of honk

only need the handle rename logic for !local
Ted Unangst tedu@tedunangst.com
Sun, 01 Dec 2019 13:16:10 -0500
commit

bb785ef93a880ffdf4295adc572cc8a3c7926a19

parent

8155e0381831de80cbea83c68104542a5bc39ff0

1 files changed, 9 insertions(+), 7 deletions(-)

jump to
M fun.gofun.go

@@ -72,13 +72,15 @@ h.Noise = mentionize(h.Noise)

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 == "" {