diff --git a/src/helpers/NotificationsHelper.ts b/src/helpers/NotificationsHelper.ts index fdd7ad6..2c6ce08 100644 --- a/src/helpers/NotificationsHelper.ts +++ b/src/helpers/NotificationsHelper.ts @@ -127,11 +127,11 @@ export class NotificationsHelper { // Private post (on user pages) if(post.visibilityLevel == PostVisibilityLevel.VISIBILITY_USER) { - // Check if the user does not own the post + // Check if the post belongs to current user => no notification needed if(post.userID == post.userPageID) return; - // If the personn who posted that is not the owner of the page + // If the person who posted that is not the owner of the page else if(post.userPageID != n.fromUserID) n.destUserID = post.userPageID