diff options
author | Adam Mathes <adam@trenchant.org> | 2017-01-30 18:43:29 -0800 |
---|---|---|
committer | Adam Mathes <adam@trenchant.org> | 2017-01-30 18:43:29 -0800 |
commit | 09a859501fc1fb1f4f781cfdd448f359b7ef4983 (patch) | |
tree | 08d5e0e942b88d47e5799c406de640f49c305756 /web | |
parent | 030cfcce60658ede58a31b36704a3a417c346a4c (diff) | |
download | neko-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.go | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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) } |