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:
parent
17aae72583
commit
3d19313a7f
24 changed files with 111 additions and 29 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue