Skip to content

Commit

Permalink
avoid extra notification name (superdesk#2657)
Browse files Browse the repository at this point in the history
SDBELGA-818
  • Loading branch information
petrjasek authored Aug 7, 2024
1 parent c1f85c9 commit 4ad3610
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions apps/archive/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,7 @@ def handle_mark_user_notifications(self, updates, original, add_activity=True):
)

self._send_mark_user_notifications(
"item:unmarked",
"item:marked",
message,
resource=self.datasource,
item=original,
Expand Down Expand Up @@ -1295,7 +1295,6 @@ def _send_mark_user_notifications(
item=item,
user_list=user_list,
link=link,
notification_name="mark_for_user",
**data,
)

Expand Down
3 changes: 3 additions & 0 deletions superdesk/activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@ def notify_and_add_activity(
if user_list is None:
user_list = []

if notification_name is None:
notification_name = activity_name

notify_users = [
str(user.get("_id"))
for user in user_list
Expand Down

0 comments on commit 4ad3610

Please sign in to comment.