redo glow check. sometimes first one isn't visible
This commit is contained in:
parent
295f558560
commit
209a7f0b4f
4
web.go
4
web.go
|
@ -899,8 +899,8 @@ func showonehonk(w http.ResponseWriter, r *http.Request) {
|
||||||
rawhonks := gethonksbyconvoy(honk.UserID, honk.Convoy, 0)
|
rawhonks := gethonksbyconvoy(honk.UserID, honk.Convoy, 0)
|
||||||
reversehonks(rawhonks)
|
reversehonks(rawhonks)
|
||||||
var honks []*Honk
|
var honks []*Honk
|
||||||
for i, h := range rawhonks {
|
for _, h := range rawhonks {
|
||||||
if i > 0 && h.XID == xid {
|
if h.XID == xid && len(honks) != 0 {
|
||||||
h.Style += " glow"
|
h.Style += " glow"
|
||||||
}
|
}
|
||||||
if h.Public && (h.Whofore == 2 || h.IsAcked()) {
|
if h.Public && (h.Whofore == 2 || h.IsAcked()) {
|
||||||
|
|
Loading…
Reference in New Issue