aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/web.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/web/web.go b/web/web.go
index 2cb9669..1f01241 100644
--- a/web/web.go
+++ b/web/web.go
@@ -37,8 +37,13 @@ func streamHandler(w http.ResponseWriter, r *http.Request) {
unread_only = false
}
+ starred_only := false
+ if r.FormValue("starred") != "" {
+ starred_only = true
+ }
+
var items []*item.Item
- items, err := item.Filter(int64(max_id), feed_id, unread_only)
+ items, err := item.Filter(int64(max_id), feed_id, unread_only, starred_only)
if err != nil {
log.Println(err)
}