allow retrieving myhonks via api

Ted Unangst 2 years ago
parent 423c2264fe
commit 0b32720284

@ -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

Loading…
Cancel
Save