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",
Honker: user.URL,
XID: xonk.XID,
RID: xonk.RID,
Date: dt,
Donks: xonk.Donks,
Convoy: xonk.Convoy,
@ -745,7 +746,7 @@ func savebonk(w http.ResponseWriter, r *http.Request) {
aud := strings.Join(bonk.Audience, " ")
whofore := 2
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",
xonk.Precis, oonker, 0, strings.Join(onts, " "))
if err != nil {