diff --git a/src/model/notification.rs b/src/model/notification.rs index 2a661cf..2ec3923 100644 --- a/src/model/notification.rs +++ b/src/model/notification.rs @@ -64,7 +64,7 @@ WHERE user_id = ? AND ( read_at IS NULL - OR read_at >= datetime('now', '-30 days') + OR read_at >= datetime('now', '-14 days') ) ORDER BY read_at DESC, created_at DESC; ", diff --git a/templates/index.html.tera b/templates/index.html.tera index 06d985e..8bcb4f9 100644 --- a/templates/index.html.tera +++ b/templates/index.html.tera @@ -39,7 +39,7 @@ {% endfor %}
- Vergangene Nachrichten + Vergangene Nachrichten (14 Tage)
{% for notification in notifications %} {% if notification.read_at %}