need some osmosis in the combo hydration
This commit is contained in:
parent
bf062066c2
commit
c6d1a0928f
2
web.go
2
web.go
|
@ -740,7 +740,6 @@ func honkpage(w http.ResponseWriter, u *login.UserInfo, honks []*Honk, templinfo
|
||||||
reverbolate(userid, honks)
|
reverbolate(userid, honks)
|
||||||
templinfo["Honks"] = honks
|
templinfo["Honks"] = honks
|
||||||
if templinfo["TopXID"] == nil && len(honks) > 0 {
|
if templinfo["TopXID"] == nil && len(honks) > 0 {
|
||||||
log.Printf("setting topxid")
|
|
||||||
templinfo["TopXID"] = honks[0].XID
|
templinfo["TopXID"] = honks[0].XID
|
||||||
}
|
}
|
||||||
err := readviews.Execute(w, "honkpage.html", templinfo)
|
err := readviews.Execute(w, "honkpage.html", templinfo)
|
||||||
|
@ -1552,6 +1551,7 @@ func webhydra(w http.ResponseWriter, r *http.Request) {
|
||||||
case "combo":
|
case "combo":
|
||||||
c := r.FormValue("c")
|
c := r.FormValue("c")
|
||||||
honks = gethonksbycombo(userid, c)
|
honks = gethonksbycombo(userid, c)
|
||||||
|
honks = osmosis(honks, userid)
|
||||||
templinfo["ServerMessage"] = "honks by combo: " + c
|
templinfo["ServerMessage"] = "honks by combo: " + c
|
||||||
case "convoy":
|
case "convoy":
|
||||||
c := r.FormValue("c")
|
c := r.FormValue("c")
|
||||||
|
|
Loading…
Reference in New Issue