reduce duplicate bonks received slightly
Ted Unangst tedu@tedunangst.com
Sun, 14 Apr 2019 10:10:08 -0400
2 files changed,
2 insertions(+),
2 deletions(-)
M
activity.go
→
activity.go
@@ -218,7 +218,7 @@ return &donk
} func needxonk(userid int64, x *Honk) bool { - row := stmtFindXonk.QueryRow(userid, x.XID, x.What) + row := stmtFindXonk.QueryRow(userid, x.XID) err := row.Scan(&x.ID) if err == nil { return false
M
honk.go
→
honk.go
@@ -1014,7 +1014,7 @@ stmtFileData, err = db.Prepare("select content from files where xid = ?")
if err != nil { log.Fatal(err) } - stmtFindXonk, err = db.Prepare("select honkid from honks where userid = ? and xid = ? and what = ?") + stmtFindXonk, err = db.Prepare("select honkid from honks where userid = ? and xid = ?") if err != nil { log.Fatal(err) }