only need the handle rename logic for !local
This commit is contained in:
parent
d5d943b203
commit
e421c0ba20
1 changed files with 9 additions and 7 deletions
2
fun.go
2
fun.go
|
|
@ -72,6 +72,7 @@ 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)
|
||||||
|
if !local {
|
||||||
short := shortname(userid, h.Honker)
|
short := shortname(userid, h.Honker)
|
||||||
if short != "" {
|
if short != "" {
|
||||||
h.Username = short
|
h.Username = short
|
||||||
|
|
@ -81,6 +82,7 @@ func reverbolate(userid int64, honks []*Honk) {
|
||||||
h.Username = h.Username[:20] + ".."
|
h.Username = h.Username[:20] + ".."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if h.URL == "" {
|
if h.URL == "" {
|
||||||
h.URL = h.XID
|
h.URL = h.XID
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue