allow retrieving myhonks via api
This commit is contained in:
parent
d0c18338f6
commit
5c31e2ca06
3
web.go
3
web.go
|
@ -2350,6 +2350,9 @@ func apihandler(w http.ResponseWriter, r *http.Request) {
|
||||||
case "home":
|
case "home":
|
||||||
honks = gethonksforuser(userid, wanted)
|
honks = gethonksforuser(userid, wanted)
|
||||||
honks = osmosis(honks, userid, true)
|
honks = osmosis(honks, userid, true)
|
||||||
|
case "myhonks":
|
||||||
|
honks = gethonksbyuser(u.Username, true, wanted)
|
||||||
|
honks = osmosis(honks, userid, true)
|
||||||
default:
|
default:
|
||||||
http.Error(w, "unknown page", http.StatusNotFound)
|
http.Error(w, "unknown page", http.StatusNotFound)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue