aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorAdam Mathes <adam@trenchant.org>2017-01-30 18:43:29 -0800
committerAdam Mathes <adam@trenchant.org>2017-01-30 18:43:29 -0800
commit09a859501fc1fb1f4f781cfdd448f359b7ef4983 (patch)
tree08d5e0e942b88d47e5799c406de640f49c305756 /web
parent030cfcce60658ede58a31b36704a3a417c346a4c (diff)
downloadneko-09a859501fc1fb1f4f781cfdd448f359b7ef4983.tar.gz
neko-09a859501fc1fb1f4f781cfdd448f359b7ef4983.tar.bz2
neko-09a859501fc1fb1f4f781cfdd448f359b7ef4983.zip
add back in starred functionality, fix login page
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)
}