1
0
Fork 0
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:
Frédéric Guillot 2017-12-22 18:13:14 -08:00
parent e7afec7eca
commit f546552a1d
2 changed files with 20 additions and 3 deletions

View file

@ -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