only need the handle rename logic for !local
This commit is contained in:
parent
d5d943b203
commit
e421c0ba20
16
fun.go
16
fun.go
|
@ -72,13 +72,15 @@ func reverbolate(userid int64, honks []*Honk) {
|
||||||
h.Noise = ontologize(h.Noise)
|
h.Noise = ontologize(h.Noise)
|
||||||
}
|
}
|
||||||
h.Username, h.Handle = handles(h.Honker)
|
h.Username, h.Handle = handles(h.Honker)
|
||||||
short := shortname(userid, h.Honker)
|
if !local {
|
||||||
if short != "" {
|
short := shortname(userid, h.Honker)
|
||||||
h.Username = short
|
if short != "" {
|
||||||
} else {
|
h.Username = short
|
||||||
h.Username = h.Handle
|
} else {
|
||||||
if len(h.Username) > 20 {
|
h.Username = h.Handle
|
||||||
h.Username = h.Username[:20] + ".."
|
if len(h.Username) > 20 {
|
||||||
|
h.Username = h.Username[:20] + ".."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if h.URL == "" {
|
if h.URL == "" {
|
||||||
|
|
Loading…
Reference in New Issue