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

fix(ui): incorrect force refresh interval unit used in messages

Regression introduced in commit c6536e8
This commit is contained in:
Frédéric Guillot 2025-09-08 12:06:31 -07:00
parent fa361ab1ce
commit 5f38054965
2 changed files with 4 additions and 4 deletions

View file

@ -33,8 +33,8 @@ func (h *handler) refreshCategory(w http.ResponseWriter, r *http.Request) int64
// Avoid accidental and excessive refreshes. // Avoid accidental and excessive refreshes.
if time.Since(request.LastForceRefresh(r)) < config.Opts.ForceRefreshInterval() { if time.Since(request.LastForceRefresh(r)) < config.Opts.ForceRefreshInterval() {
seconds := int(config.Opts.ForceRefreshInterval().Seconds()) interval := int(config.Opts.ForceRefreshInterval().Minutes())
sess.NewFlashErrorMessage(printer.Plural("alert.too_many_feeds_refresh", seconds, seconds)) sess.NewFlashErrorMessage(printer.Plural("alert.too_many_feeds_refresh", interval, interval))
} else { } else {
userID := request.UserID(r) userID := request.UserID(r)
// We allow the end-user to force refresh all its feeds in this category // We allow the end-user to force refresh all its feeds in this category

View file

@ -38,8 +38,8 @@ func (h *handler) refreshAllFeeds(w http.ResponseWriter, r *http.Request) {
// Avoid accidental and excessive refreshes. // Avoid accidental and excessive refreshes.
if time.Since(request.LastForceRefresh(r)) < config.Opts.ForceRefreshInterval() { if time.Since(request.LastForceRefresh(r)) < config.Opts.ForceRefreshInterval() {
seconds := int(config.Opts.ForceRefreshInterval().Seconds()) interval := int(config.Opts.ForceRefreshInterval().Minutes())
sess.NewFlashErrorMessage(printer.Plural("alert.too_many_feeds_refresh", seconds, seconds)) sess.NewFlashErrorMessage(printer.Plural("alert.too_many_feeds_refresh", interval, interval))
} else { } else {
userID := request.UserID(r) userID := request.UserID(r)
// We allow the end-user to force refresh all its feeds // We allow the end-user to force refresh all its feeds