diff --git a/src/controllers/posts_controller.rs b/src/controllers/posts_controller.rs index 97ee3bc..23cb8fa 100644 --- a/src/controllers/posts_controller.rs +++ b/src/controllers/posts_controller.rs @@ -260,7 +260,8 @@ pub fn update_content(r: &mut HttpRequestHandler) -> RequestResult { posts_helper::set_content(post.id, &new_content)?; - // TODO : Delete the notifications targeting the current user about this post + // Delete the notifications targeting the current user about this post + notifications_helper::delete_all_post_notifications_targeting_user(r.user_id_ref()?, post.id)?; r.success("Content updated") }