allow retrieving myhonks via api

This commit is contained in:
Ted Unangst 2022-10-17 14:01:58 -04:00
parent d0c18338f6
commit 5c31e2ca06
1 changed files with 3 additions and 0 deletions

3
web.go
View File

@ -2350,6 +2350,9 @@ func apihandler(w http.ResponseWriter, r *http.Request) {
case "home":
honks = gethonksforuser(userid, wanted)
honks = osmosis(honks, userid, true)
case "myhonks":
honks = gethonksbyuser(u.Username, true, wanted)
honks = osmosis(honks, userid, true)
default:
http.Error(w, "unknown page", http.StatusNotFound)
return