1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-12-28 14:38:52 +00:00

Delete notification for a user about a post when updating it

This commit is contained in:
Pierre HUBERT 2021-01-25 18:40:54 +01:00
parent b6021b11d2
commit 608a85e7f5

View File

@ -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")
}