all repos — honk @ 7db3d52716775819e255c466e9117986da0201d5

my fork of honk

quiet a log error
Ted Unangst tedu@tedunangst.com
Fri, 17 Mar 2023 14:28:29 -0400
commit

7db3d52716775819e255c466e9117986da0201d5

parent

42dfdb9a2525ff37f765e4a67c535945754723e3

1 files changed, 6 insertions(+), 3 deletions(-)

jump to
M activity.goactivity.go

@@ -1908,12 +1908,15 @@

} func unfollowyou(user *WhatAbout, honkerid int64, sync bool) { db := opendatabase() - row := db.QueryRow("select xid, owner, folxid from honkers where honkerid = ? and userid = ? and flavor in ('sub')", + row := db.QueryRow("select xid, owner, folxid, flavor from honkers where honkerid = ? and userid = ? and flavor in ('unsub', 'peep', 'presub', 'sub')", honkerid, user.ID) - var url, owner, folxid string - err := row.Scan(&url, &owner, &folxid) + var url, owner, folxid, flavor string + err := row.Scan(&url, &owner, &folxid, &flavor) if err != nil { elog.Printf("can't get honker xid: %s", err) + return + } + if flavor == "peep" { return } ilog.Printf("unsubscribing from %s", url)