all repos — honk @ 8088ff26bf4565bc056724b4b38758ed33a13282

my fork of honk

add search to api
Ted Unangst tedu@tedunangst.com
Mon, 05 Feb 2024 02:21:11 -0500
commit

8088ff26bf4565bc056724b4b38758ed33a13282

parent

ca048e193e8123108efca050b1e91ae19d07bf81

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

jump to
M web.goweb.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