all repos — honk @ 5ffb8121f4bd2d670306a2815af5c55a7d9983fe

my fork of honk

same sanity for url
Ted Unangst tedu@tedunangst.com
Tue, 27 Feb 2024 16:59:06 -0500
commit

5ffb8121f4bd2d670306a2815af5c55a7d9983fe

parent

e8b102066e9d009f3d1667aecaaa7ffe351eb549

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

jump to
M activity.goactivity.go

@@ -1169,7 +1169,9 @@ // init xonk

xonk.What = what xonk.RID = rid xonk.Date, _ = time.Parse(time.RFC3339, dt) - xonk.URL = url + if originate(url) == originate(xonk.XID) { + xonk.URL = url + } xonk.Format = "html" xonk.Convoy = convoy xonk.Mentions = mentions
M database.godatabase.go

@@ -179,6 +179,9 @@ return users

} func getxonk(userid int64, xid string) *Honk { + if xid == "" { + return nil + } row := stmtOneXonk.QueryRow(userid, xid, xid) return scanhonk(row) }