save rid for bonks to track parent

This commit is contained in:
Ted Unangst 2019-09-10 16:06:06 -04:00
parent e081c594cc
commit d57a633f0f
1 changed files with 2 additions and 1 deletions

3
web.go
View File

@ -735,6 +735,7 @@ func savebonk(w http.ResponseWriter, r *http.Request) {
What: "bonk", What: "bonk",
Honker: user.URL, Honker: user.URL,
XID: xonk.XID, XID: xonk.XID,
RID: xonk.RID,
Date: dt, Date: dt,
Donks: xonk.Donks, Donks: xonk.Donks,
Convoy: xonk.Convoy, Convoy: xonk.Convoy,
@ -745,7 +746,7 @@ func savebonk(w http.ResponseWriter, r *http.Request) {
aud := strings.Join(bonk.Audience, " ") aud := strings.Join(bonk.Audience, " ")
whofore := 2 whofore := 2
onts := xonk.Onts onts := xonk.Onts
res, err := stmtSaveHonk.Exec(userinfo.UserID, "bonk", bonk.Honker, xid, "", res, err := stmtSaveHonk.Exec(userinfo.UserID, "bonk", bonk.Honker, xid, bonk.RID,
dt.Format(dbtimeformat), "", aud, xonk.Noise, xonk.Convoy, whofore, "html", dt.Format(dbtimeformat), "", aud, xonk.Noise, xonk.Convoy, whofore, "html",
xonk.Precis, oonker, 0, strings.Join(onts, " ")) xonk.Precis, oonker, 0, strings.Join(onts, " "))
if err != nil { if err != nil {