all repos — honk @ 781652add08870420a3c470bd2e8f85250f2d4c9

my fork of honk

fix unplug to handle server without url
Ted Unangst tedu@tedunangst.com
Sun, 24 Dec 2023 20:21:44 -0500
commit

781652add08870420a3c470bd2e8f85250f2d4c9

parent

1ba9361df84d65ad0ca13f08f52703c795bd4cdd

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M main.gomain.go

@@ -50,7 +50,10 @@ }

func unplugserver(hostname string) { db := opendatabase() - xid := fmt.Sprintf("%%https://%s/%%", hostname) + xid := fmt.Sprintf("https://%s", hostname) + db.Exec("delete from honkers where xid = ? and flavor = 'dub'", xid) + db.Exec("delete from doovers where rcpt = ?", xid) + xid += "/%" db.Exec("delete from honkers where xid like ? and flavor = 'dub'", xid) db.Exec("delete from doovers where rcpt like ?", xid) }