add search to api
Ted Unangst tedu@tedunangst.com
Mon, 05 Feb 2024 02:21:11 -0500
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
web.go
→
web.go
@@ -2608,6 +2608,9 @@ honks, _ = threadposes(honks, wanted)
case "honker": xid := r.FormValue("xid") honks = gethonksbyxonker(userid, xid, wanted) + case "search": + q := r.FormValue("q") + honks = gethonksbysearch(u.UserID, q, wanted) default: http.Error(w, "unknown page", http.StatusNotFound) return