Merge pull request 'only show notifications from last 2 weeks' (#352) from staging into main
Reviewed-on: #352
This commit is contained in:
commit
23cd62820c
@ -64,7 +64,7 @@ WHERE
|
|||||||
user_id = ?
|
user_id = ?
|
||||||
AND (
|
AND (
|
||||||
read_at IS NULL
|
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;
|
ORDER BY read_at DESC, created_at DESC;
|
||||||
",
|
",
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
<details class="py-3 bg-gray-200 dark:bg-primary-950 rounded-b-md">
|
<details class="py-3 bg-gray-200 dark:bg-primary-950 rounded-b-md">
|
||||||
<summary class="px-3">Vergangene Nachrichten</summary>
|
<summary class="px-3">Vergangene Nachrichten (14 Tage)</summary>
|
||||||
<div class="divide-y text-sm">
|
<div class="divide-y text-sm">
|
||||||
{% for notification in notifications %}
|
{% for notification in notifications %}
|
||||||
{% if notification.read_at %}
|
{% if notification.read_at %}
|
||||||
|
Loading…
Reference in New Issue
Block a user