diff options
author | Maxim Baz <github@maximbaz.com> | 2019-10-30 05:44:35 +0100 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2019-10-29 21:44:35 -0700 |
commit | e38333e272b24b6fcfa5399aa944f771558eb7aa (patch) | |
tree | 2ce26220cebdcafc01ba89fb59fa5a09da1268e7 /model/feed.go | |
parent | 2eb2441f2ba9fcb50d17d8f7deead756187b3586 (diff) |
Show unread counters on feeds page
Diffstat (limited to 'model/feed.go')
-rw-r--r-- | model/feed.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/model/feed.go b/model/feed.go index 4b67cb1..0e25d7b 100644 --- a/model/feed.go +++ b/model/feed.go @@ -33,6 +33,8 @@ type Feed struct { Category *Category `json:"category,omitempty"` Entries Entries `json:"entries,omitempty"` Icon *FeedIcon `json:"icon"` + UnreadCount int `json:"unread_count"` + ReadCount int `json:"read_count"` } func (f *Feed) String() string { |