Skip to content

Commit 5c01794

Browse files
committed
fixup outbound notifications .origin & .target (for DSpace-8.2)
1 parent 370e84e commit 5c01794

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

modules/app_modules/coar_notify.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def send_notification(self, notification, article):
6868
target_inbox = get_target_inbox(article)
6969

7070
notification = self.add_base_notification_properties(notification, target_inbox)
71+
notification.update(fixup_target_origin(article))
7172
if article.coar_notification_id:
7273
notification.update({
7374
"inReplyTo": article.coar_notification_id,
@@ -334,6 +335,7 @@ def send_ack(self,
334335

335336
target_inbox = origin_req["origin"]["inbox"]
336337
notification = self.add_base_notification_properties(notification, target_inbox)
338+
notification.update(fixup_target_origin(article))
337339
self._send_notification(notification, target_inbox)
338340

339341
return notification

0 commit comments

Comments
 (0)