This commit is contained in:
Massimiliano Assante 2023-02-08 16:29:00 +01:00
parent 09ca845311
commit ef4d5b22ca
1 changed files with 2 additions and 1 deletions

View File

@ -559,9 +559,10 @@ public class SocialUtils {
NotificationsManager nm = new ApplicationNotificationsManager(uManager, site, context, socialUser, NEWS_FEED_PORTLET_CLASSNAME);
//if the user who commented this post is not the user who posted it notify the poster user (Post owner)
logger.info("The post creator is " + postOwnerId);
if (! user.getUsername().equals(postOwnerId)) {
boolean resultNotifyOwnComment = nm.notifyOwnCommentReply(postOwnerId, postId, escapedCommentText, theComment.getKey());
logger.info("Comment Notification to post owner added? " + resultNotifyOwnComment);
logger.info("Comment Notification to post creator added? " + resultNotifyOwnComment);
}
//if there are users who liked this post they get notified, asynchronously with this thread
ArrayList<Like> likes = getAllLikesByPost(postId);