aboutsummaryrefslogtreecommitdiff
path: root/internal/ui/category_refresh.go
diff options
context:
space:
mode:
authorGravatar jvoisin <julien.voisin@dustri.org> 2024-02-27 17:19:38 +0100
committerGravatar Frédéric Guillot <f@miniflux.net> 2024-02-28 19:24:41 -0800
commit5a7d6f89975959e0a1a63f1ac68d5bb41f01ab2c (patch)
tree992245da4fdf2ef81448dc6fb4c126d98a478304 /internal/ui/category_refresh.go
parentb4ed17fbac15d71fa379ca463d63c7e36d833fd2 (diff)
downloadv2-5a7d6f89975959e0a1a63f1ac68d5bb41f01ab2c.tar.gz
v2-5a7d6f89975959e0a1a63f1ac68d5bb41f01ab2c.tar.zst
v2-5a7d6f89975959e0a1a63f1ac68d5bb41f01ab2c.zip
Make use of printer.Print when possible
Diffstat (limited to 'internal/ui/category_refresh.go')
-rw-r--r--internal/ui/category_refresh.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/ui/category_refresh.go b/internal/ui/category_refresh.go
index adbf015a..e3eed10e 100644
--- a/internal/ui/category_refresh.go
+++ b/internal/ui/category_refresh.go
@@ -33,7 +33,7 @@ func (h *handler) refreshCategory(w http.ResponseWriter, r *http.Request) int64
// Avoid accidental and excessive refreshes.
if time.Now().UTC().Unix()-request.LastForceRefresh(r) < 1800 {
- sess.NewFlashErrorMessage(printer.Printf("alert.too_many_feeds_refresh"))
+ sess.NewFlashErrorMessage(printer.Print("alert.too_many_feeds_refresh"))
} else {
// We allow the end-user to force refresh all its feeds in this category
// without taking into consideration the number of errors.
@@ -58,7 +58,7 @@ func (h *handler) refreshCategory(w http.ResponseWriter, r *http.Request) int64
go h.pool.Push(jobs)
sess.SetLastForceRefresh()
- sess.NewFlashMessage(printer.Printf("alert.background_feed_refresh"))
+ sess.NewFlashMessage(printer.Print("alert.background_feed_refresh"))
}
return categoryID