1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-21 21:09:22 +00:00

Improve comments

This commit is contained in:
Pierre HUBERT 2021-01-23 14:28:12 +01:00
parent c3e749361a
commit d424480e7e

View File

@ -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