mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-12-27 22:18:51 +00:00
Delete notification for a user about a post when updating it
This commit is contained in:
parent
b6021b11d2
commit
608a85e7f5
@ -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")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user