From a4b8e945d6257ed885a04758ad5e8f549c573782 Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Wed, 19 Oct 2022 17:12:56 +0200 Subject: [PATCH] o --- .../portal/social/networking/ws/methods/v2/Notifications.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/portal/social/networking/ws/methods/v2/Notifications.java b/src/main/java/org/gcube/portal/social/networking/ws/methods/v2/Notifications.java index 1b614f3..ca9a626 100644 --- a/src/main/java/org/gcube/portal/social/networking/ws/methods/v2/Notifications.java +++ b/src/main/java/org/gcube/portal/social/networking/ws/methods/v2/Notifications.java @@ -362,7 +362,7 @@ public class Notifications { GCubeUser jarvis = UserManagerWSBuilder.getInstance().getUserManager().getUserByEmail(LiferayJSONWsCredentials.getSingleton().getUser()); SecurityTokenProvider.instance.set(LiferayJSONWsCredentials.getSingleton().getNotifierUserToken()); username = jarvis.getUsername(); - fullName = caller.getClient().getId(); // the actual name of the IAM Client + fullName = caller.getClient().getId().replace("service-account-", ""); // the actual name of the IAM Client senderUser = um.getUserByUsername(username); user = new SocialNetworkingUser(senderUser.getUsername(), senderUser.getEmail(), fullName, senderUser.getUserAvatarURL()); }else{