From 5af56a039a115ac8a88de162a2e8b1158bc90aaf Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Wed, 8 Feb 2023 16:08:16 +0100 Subject: [PATCH] trying fix --- .../portal/social/networking/ws/utils/SocialUtils.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/gcube/portal/social/networking/ws/utils/SocialUtils.java b/src/main/java/org/gcube/portal/social/networking/ws/utils/SocialUtils.java index 886e075..10fd727 100644 --- a/src/main/java/org/gcube/portal/social/networking/ws/utils/SocialUtils.java +++ b/src/main/java/org/gcube/portal/social/networking/ws/utils/SocialUtils.java @@ -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 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) {