trying fix

This commit is contained in:
Massimiliano Assante 2023-02-08 16:08:16 +01:00
parent f67c38ef2d
commit 5af56a039a
1 changed files with 5 additions and 5 deletions

View File

@ -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 (! user.getUsername().equals(postOwnerId)) {
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
ArrayList<Like> likes = getAllLikesByPost(postId);
@ -569,10 +569,10 @@ public class SocialUtils {
likesThread.start();
//notify the other users who commented this post (excluding the ones above)
Thread commentsNotificationthread = new Thread(new CommentNotificationsThread(
CassandraConnection.getInstance().getDatabookStore(),
uManager, user.getUsername(), theComment.getFeedid(), escapedCommentText, nm, postOwnerId, theComment.getKey(), likes));
commentsNotificationthread.start();
// Thread commentsNotificationthread = new Thread(new CommentNotificationsThread(
// CassandraConnection.getInstance().getDatabookStore(),
// uManager, user.getUsername(), theComment.getFeedid(), escapedCommentText, nm, postOwnerId, theComment.getKey(), likes));
// commentsNotificationthread.start();
//send the notification to the mentioned users, if any
if (mentionedUsers != null && mentionedUsers.size() > 0) {