From b148b7efceb479863b62c6a3cbaf8bf12cd03836 Mon Sep 17 00:00:00 2001 From: Boubaker Khanfir Date: Tue, 29 Oct 2024 18:13:56 +0100 Subject: [PATCH] fix: Adapt Portal MOP Services API changes - MEED-7663 - Meeds-io/MIPs#165 --- .../processes/listener/RequestCommentNotificationListener.java | 2 +- .../processes/notification/utils/NotificationUtils.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/processes-services/src/main/java/org/exoplatform/processes/listener/RequestCommentNotificationListener.java b/processes-services/src/main/java/org/exoplatform/processes/listener/RequestCommentNotificationListener.java index 0174a5325..d122deb8b 100644 --- a/processes-services/src/main/java/org/exoplatform/processes/listener/RequestCommentNotificationListener.java +++ b/processes-services/src/main/java/org/exoplatform/processes/listener/RequestCommentNotificationListener.java @@ -64,6 +64,6 @@ public void onEvent(Event event) throws Exception { } private String getPortalOwner() { - return CommonsUtils.getService(UserPortalConfigService.class).getDefaultPortal(); + return CommonsUtils.getService(UserPortalConfigService.class).getMetaPortal(); } } diff --git a/processes-services/src/main/java/org/exoplatform/processes/notification/utils/NotificationUtils.java b/processes-services/src/main/java/org/exoplatform/processes/notification/utils/NotificationUtils.java index a12e3b57b..105213061 100644 --- a/processes-services/src/main/java/org/exoplatform/processes/notification/utils/NotificationUtils.java +++ b/processes-services/src/main/java/org/exoplatform/processes/notification/utils/NotificationUtils.java @@ -154,7 +154,7 @@ public static String formatMention(String comment){ portalOwner = Util.getPortalRequestContext().getPortalOwner(); } catch (Exception e){ //default value for testing and social - portalOwner = userPortalConfigService.getDefaultPortal(); + portalOwner = userPortalConfigService.getMetaPortal(); } return MentionUtils.substituteUsernames(portalOwner, comment); }