trying fix
This commit is contained in:
parent
f67c38ef2d
commit
5af56a039a
|
@ -561,7 +561,7 @@ public class SocialUtils {
|
||||||
//if the user who commented this post is not the user who posted it notify the poster user (Post owner)
|
//if the user who commented this post is not the user who posted it notify the poster user (Post owner)
|
||||||
if (! user.getUsername().equals(postOwnerId)) {
|
if (! user.getUsername().equals(postOwnerId)) {
|
||||||
boolean resultNotifyOwnComment = nm.notifyOwnCommentReply(postOwnerId, postId, escapedCommentText, theComment.getKey());
|
boolean resultNotifyOwnComment = nm.notifyOwnCommentReply(postOwnerId, postId, escapedCommentText, theComment.getKey());
|
||||||
logger.trace("Comment Notification to post owner added? " + resultNotifyOwnComment);
|
logger.info("Comment Notification to post owner added? " + resultNotifyOwnComment);
|
||||||
}
|
}
|
||||||
//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> likes = getAllLikesByPost(postId);
|
ArrayList<Like> likes = getAllLikesByPost(postId);
|
||||||
|
@ -569,10 +569,10 @@ public class SocialUtils {
|
||||||
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(
|
// Thread commentsNotificationthread = new Thread(new CommentNotificationsThread(
|
||||||
CassandraConnection.getInstance().getDatabookStore(),
|
// CassandraConnection.getInstance().getDatabookStore(),
|
||||||
uManager, user.getUsername(), theComment.getFeedid(), escapedCommentText, nm, postOwnerId, theComment.getKey(), likes));
|
// uManager, user.getUsername(), theComment.getFeedid(), escapedCommentText, nm, postOwnerId, theComment.getKey(), likes));
|
||||||
commentsNotificationthread.start();
|
// commentsNotificationthread.start();
|
||||||
|
|
||||||
//send the notification to the mentioned users, if any
|
//send the notification to the mentioned users, if any
|
||||||
if (mentionedUsers != null && mentionedUsers.size() > 0) {
|
if (mentionedUsers != null && mentionedUsers.size() > 0) {
|
||||||
|
|
Loading…
Reference in New Issue