diff --git a/src/controllers/PostsController.ts b/src/controllers/PostsController.ts index f0f5370..f9ee4c4 100644 --- a/src/controllers/PostsController.ts +++ b/src/controllers/PostsController.ts @@ -315,7 +315,9 @@ export class PostsController { await PostsHelper.SetLevel(postID, newVisibility); - // TODO : depending on new level, delete (or not) notifications about the post + // Depending on new level, delete (or not) notifications about the post + if(newVisibility == PostVisibilityLevel.VISIBILITY_USER) + await NotificationsHelper.DeleteAllRelatedWithPost(postID); h.success(""); }