1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-20 16:35:17 +00:00

Can delete notification targeting a user about a post

This commit is contained in:
2021-01-24 18:05:11 +01:00
parent f1525c4cc4
commit 334496a63c
2 changed files with 12 additions and 1 deletions

View File

@ -49,7 +49,8 @@ pub fn create(r: &mut HttpRequestHandler) -> RequestResult {
// Create notifications
notifications_helper::create_post_notification(&r.user_id()?, post.id, NotifEventType::COMMENT_CREATED)?;
// TODO : Remove notifications targeting current user about the post
// Remove notifications targeting current user about the post
notifications_helper::delete_all_post_notifications_targeting_user(r.user_id_ref()?, post.id)?;
r.set_response(ResCreateComment::new(comment_id))
}