load donks for private honk

This commit is contained in:
Ted Unangst 2020-11-10 23:32:35 -05:00
parent 8369d6f066
commit 8a2d3348fa
1 changed files with 3 additions and 1 deletions

4
web.go
View File

@ -1018,10 +1018,12 @@ func showonehonk(w http.ResponseWriter, r *http.Request) {
return return
} }
honks := []*Honk{honk}
donksforhonks(honks)
templinfo := getInfo(r) templinfo := getInfo(r)
templinfo["ServerMessage"] = "one honk maybe more" templinfo["ServerMessage"] = "one honk maybe more"
templinfo["HonkCSRF"] = login.GetCSRF("honkhonk", r) templinfo["HonkCSRF"] = login.GetCSRF("honkhonk", r)
honkpage(w, u, []*Honk{honk}, templinfo) honkpage(w, u, honks, templinfo)
return return
} }
rawhonks := gethonksbyconvoy(honk.UserID, honk.Convoy, 0) rawhonks := gethonksbyconvoy(honk.UserID, honk.Convoy, 0)