From d424480e7ee2213a580363f90f38d637d2211391 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 23 Jan 2021 14:28:12 +0100 Subject: [PATCH] Improve comments --- src/helpers/NotificationsHelper.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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