From dc40562897c3363df40da4c2b3bfa0ede7b02db7 Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Wed, 18 May 2016 22:18:12 +0000 Subject: [PATCH] git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/news-feed@128674 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../gcube/portlets/user/newsfeed/server/NewsServiceImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/newsfeed/server/NewsServiceImpl.java b/src/main/java/org/gcube/portlets/user/newsfeed/server/NewsServiceImpl.java index 59052b5..cbf3341 100644 --- a/src/main/java/org/gcube/portlets/user/newsfeed/server/NewsServiceImpl.java +++ b/src/main/java/org/gcube/portlets/user/newsfeed/server/NewsServiceImpl.java @@ -21,6 +21,7 @@ import org.gcube.application.framework.core.session.ASLSession; import org.gcube.application.framework.core.session.SessionManager; import org.gcube.applicationsupportlayer.social.ApplicationNotificationsManager; import org.gcube.applicationsupportlayer.social.NotificationsManager; +import org.gcube.applicationsupportlayer.social.shared.SocialNetworkingSite; import org.gcube.applicationsupportlayer.social.shared.SocialNetworkingUser; import org.gcube.common.portal.GCubePortalConstants; import org.gcube.common.portal.PortalContext; @@ -664,7 +665,7 @@ public class NewsServiceImpl extends RemoteServiceServlet implements NewsService //if the user who liked this post is not the user who posted it notify the poster user (Feed owner) if (! user.getUsername().equals(feedOwnerId)) { NotificationsManager nm = new ApplicationNotificationsManager( - getThreadLocalRequest(), + new SocialNetworkingSite(getThreadLocalRequest()), getASLSession().getScopeName(), new SocialNetworkingUser(username, user.getEmailaddress(), user.getFullName(), user.getAvatarId()), APP_ID); @@ -734,7 +735,7 @@ public class NewsServiceImpl extends RemoteServiceServlet implements NewsService if (commentCommitResult && isWithinPortal()) { //if the user who commented this post is not the user who posted it notify the poster user (Feed owner) NotificationsManager nm = new ApplicationNotificationsManager( - getThreadLocalRequest(), + new SocialNetworkingSite(getThreadLocalRequest()), getASLSession().getScopeName(), new SocialNetworkingUser(user.getUsername(), user.getEmailaddress(), user.getFullName(), user.getAvatarId()), APP_ID);