1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-15 18:57:04 +00:00

Add option to disable feeds

This commit is contained in:
Frédéric Guillot 2019-07-26 21:13:06 -07:00
parent 17aae72583
commit 3d19313a7f
24 changed files with 111 additions and 29 deletions

View file

@ -50,6 +50,7 @@ type feedModification struct {
Username *string `json:"username"`
Password *string `json:"password"`
CategoryID *int64 `json:"category_id"`
Disabled *bool `json:"disabled"`
}
func (f *feedModification) Update(feed *model.Feed) {
@ -92,6 +93,10 @@ func (f *feedModification) Update(feed *model.Feed) {
if f.CategoryID != nil && *f.CategoryID > 0 {
feed.Category.ID = *f.CategoryID
}
if f.Disabled != nil {
feed.Disabled = *f.Disabled
}
}
type userModification struct {