minor refactore

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/social-mail-servlet@142163 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2017-02-03 13:57:24 +00:00
parent 85d8ec87d2
commit b047fda5bb
3 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,8 @@
<ReleaseNotes> <ReleaseNotes>
<Changeset component="org.gcube.portal.social-mail-servlet.2-1-1"
date="2017-02-03">
<Change>Minor refactor for comment replies</Change>
</Changeset>
<Changeset component="org.gcube.portal.social-mail-servlet.2-1-0" <Changeset component="org.gcube.portal.social-mail-servlet.2-1-0"
date="2016-08-31"> date="2016-08-31">
<Change>Added possibility to change poller time at runtime as well as to quit it by editing a property file in the server</Change> <Change>Added possibility to change poller time at runtime as well as to quit it by editing a property file in the server</Change>

View File

@ -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>2.1.0-SNAPSHOT</version> <version>2.1.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>

View File

@ -496,8 +496,9 @@ public class PeriodicTask implements Runnable {
Thread likesThread = new Thread(new LikeNotificationsThread(commentText, nm, favorites, feedOwnerId, comment.getKey())); Thread likesThread = new Thread(new LikeNotificationsThread(commentText, nm, favorites, feedOwnerId, comment.getKey()));
likesThread.start(); likesThread.start();
UserManager userManager = new LiferayUserManager();
//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, comment.getKey(), favorites)); Thread commentsNotificationthread = new Thread(new CommentNotificationsThread(socialStore, userManager, fakeSession.getUsername(), comment.getFeedid(), commentText, nm, feedOwnerId, comment.getKey(), favorites));
commentsNotificationthread.start(); commentsNotificationthread.start();
} }
/** /**