diff --git a/dspace-api/src/main/java/org/dspace/app/ldn/service/impl/LDNMessageServiceImpl.java b/dspace-api/src/main/java/org/dspace/app/ldn/service/impl/LDNMessageServiceImpl.java index 88fdbbb491ee..8084e6b6d8a2 100644 --- a/dspace-api/src/main/java/org/dspace/app/ldn/service/impl/LDNMessageServiceImpl.java +++ b/dspace-api/src/main/java/org/dspace/app/ldn/service/impl/LDNMessageServiceImpl.java @@ -294,12 +294,13 @@ public NotifyRequestStatus findRequestsByItem(Context context, Item item) throws offer.setServiceName(msg.getTarget().getName()); offer.setServiceUrl(msg.getTarget().getLdnUrl()); List acks = ldnMessageDao.findAllRelatedMessagesByItem( - context, msg, item, "Accept", "TentativeReject", "TentativeAccept"); + context, msg, item, "Accept", "TentativeReject", "TentativeAccept", "Announce"); if (acks == null || acks.isEmpty()) { offer.setStatus(NotifyRequestStatusEnum.REQUESTED); } else if (acks.stream() .filter(c -> (c.getActivityStreamType().equalsIgnoreCase("TentativeAccept") || - c.getActivityStreamType().equalsIgnoreCase("Accept"))) + c.getActivityStreamType().equalsIgnoreCase("Accept") || + c.getActivityStreamType().equalsIgnoreCase("Announce"))) .findAny().isPresent()) { offer.setStatus(NotifyRequestStatusEnum.ACCEPTED); } else if (acks.stream()