From a089e2b8e07496b5da690efdafb37ed73f66ce87 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 28 Mar 2020 14:30:50 +0100 Subject: [PATCH] Remove a TODO --- src/controllers/PostsController.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(""); }