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);