same sanity for url
Ted Unangst tedu@tedunangst.com
Tue, 27 Feb 2024 16:59:06 -0500
2 files changed,
6 insertions(+),
1 deletions(-)
M
activity.go
→
activity.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.go
→
database.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) }