Update method notifyUsersInvolved to reflect updates in the applicationSupportLayerSocial and notifications-common-library. Version updated to 1.3.1
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/social-mail-servlet@124529 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
6658f6fa50
commit
84d1dc5ce1
2
pom.xml
2
pom.xml
|
@ -11,7 +11,7 @@
|
||||||
<groupId>org.gcube.portal</groupId>
|
<groupId>org.gcube.portal</groupId>
|
||||||
<artifactId>social-mail-servlet</artifactId>
|
<artifactId>social-mail-servlet</artifactId>
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
<version>1.3.0-SNAPSHOT</version>
|
<version>1.3.1-SNAPSHOT</version>
|
||||||
|
|
||||||
<name>social-mail-servlet Webapp</name>
|
<name>social-mail-servlet Webapp</name>
|
||||||
<description>This component read periodically email replies from user wanting to reply to a post via email</description>
|
<description>This component read periodically email replies from user wanting to reply to a post via email</description>
|
||||||
|
|
|
@ -400,17 +400,17 @@ public class PeriodicTask implements Runnable {
|
||||||
//if the user who commented this post is not the user who posted it notifies the poster user (Feed owner)
|
//if the user who commented this post is not the user who posted it notifies the poster user (Feed owner)
|
||||||
NotificationsManager nm = new ApplicationNotificationsManager(fakeSession);
|
NotificationsManager nm = new ApplicationNotificationsManager(fakeSession);
|
||||||
if (! fakeSession.getUsername().equals(feedOwnerId) && (!isAppFeed)) {
|
if (! fakeSession.getUsername().equals(feedOwnerId) && (!isAppFeed)) {
|
||||||
boolean result = nm.notifyOwnCommentReply(feedOwnerId, feedId, commentText);
|
boolean result = nm.notifyOwnCommentReply(feedOwnerId, feedId, commentText, comment.getKey());
|
||||||
_log.trace("Comment Notification to post owner added? " + result);
|
_log.trace("Comment Notification to post owner added? " + result);
|
||||||
}
|
}
|
||||||
|
|
||||||
//if there are users who liked this post they get notified, asynchronously with this thread
|
//if there are users who liked this post they get notified, asynchronously with this thread
|
||||||
ArrayList<Like> favorites = getAllLikesByFeed(feedId);
|
ArrayList<Like> favorites = getAllLikesByFeed(feedId);
|
||||||
Thread likesThread = new Thread(new LikeNotificationsThread(commentText, nm, favorites, feedOwnerId));
|
Thread likesThread = new Thread(new LikeNotificationsThread(commentText, nm, favorites, feedOwnerId, comment.getKey()));
|
||||||
likesThread.start();
|
likesThread.start();
|
||||||
|
|
||||||
//notify the other users who commented this post (excluding the ones above)
|
//notify the other users who commented this post (excluding the ones above)
|
||||||
Thread commentsNotificationthread = new Thread(new CommentNotificationsThread(socialStore, fakeSession.getUsername(), comment.getFeedid(), commentText, nm, feedOwnerId, favorites));
|
Thread commentsNotificationthread = new Thread(new CommentNotificationsThread(socialStore, fakeSession.getUsername(), comment.getFeedid(), commentText, nm, feedOwnerId, comment.getKey(), favorites));
|
||||||
commentsNotificationthread.start();
|
commentsNotificationthread.start();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue