Skip to content

Commit 0abef37

Browse files
committed
Merge tag '26.10.4' into develop
Fix duplication in scheduled notifications
2 parents 8da7c01 + b5322bb commit 0abef37

4 files changed

Lines changed: 10 additions & 4 deletions

File tree

CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
We follow the CalVer (https://calver.org/) versioning scheme: YY.MINOR.MICRO.
44

5+
26.10.4 (2026-06-04)
6+
====================
7+
8+
- Fix duplication in scheduled notifications
9+
510
26.10.3 (2026-06-02)
611
====================
712

notifications/tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def send_user_email_task(self, user_id, notification_ids, **kwargs):
9494
return
9595

9696
try:
97-
notifications_qs = Notification.objects.filter(id__in=notification_ids)
97+
notifications_qs = Notification.objects.filter(id__in=notification_ids, sent__isnull=True)
9898
rendered_notifications, failed_notifications = safe_render_notification(notifications_qs, email_task)
9999
notifications_qs = notifications_qs.exclude(id__in=failed_notifications)
100100

@@ -168,7 +168,7 @@ def send_moderator_email_task(self, user_id, notification_ids, provider_content_
168168
return
169169

170170
try:
171-
notifications_qs = Notification.objects.filter(id__in=notification_ids)
171+
notifications_qs = Notification.objects.filter(id__in=notification_ids, sent__isnull=True)
172172
rendered_notifications, failed_notifications = safe_render_notification(notifications_qs, email_task)
173173
notifications_qs = notifications_qs.exclude(id__in=failed_notifications)
174174

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "OSF",
3-
"version": "26.10.3",
3+
"version": "26.10.4",
44
"description": "Facilitating Open Science",
55
"repository": "https://github.com/CenterForOpenScience/osf.io",
66
"author": "Center for Open Science",

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
[tool.poetry]
22
name = "osf-io"
3-
version = "26.10.3"
3+
version = "26.10.4"
44
description = "The code for [https://osf.io](https://osf.io)."
55
authors = [
66
"Brian J. Geiger <bgeiger@pobox.com>",
77
"Longze Chen <cslzchen@gmail.com>",
8+
"Ostap Zherebetskyi <ozherebetskyi@exoft.net>",
89
]
910
license = "Apache License 2.0"
1011
readme = "README.md"

0 commit comments

Comments
 (0)