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