mirror of
https://github.com/miniflux/v2.git
synced 2025-07-22 17:18:37 +00:00
Clicking on refresh feeds should refresh only user feeds
This commit is contained in:
parent
e7afec7eca
commit
f546552a1d
2 changed files with 20 additions and 3 deletions
|
@ -13,10 +13,10 @@ import (
|
|||
"github.com/miniflux/miniflux/server/ui/form"
|
||||
)
|
||||
|
||||
// RefreshAllFeeds refresh all feeds in the background.
|
||||
// RefreshAllFeeds refresh all feeds in the background for the current user.
|
||||
func (c *Controller) RefreshAllFeeds(ctx *core.Context, request *core.Request, response *core.Response) {
|
||||
user := ctx.LoggedUser()
|
||||
jobs, err := c.store.NewBatch(c.store.CountFeeds(user.ID))
|
||||
jobs, err := c.store.NewUserBatch(user.ID, c.store.CountFeeds(user.ID))
|
||||
if err != nil {
|
||||
response.HTML().ServerError(err)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue