mirror of
				https://gitlab.com/comunic/comunicapiv3
				synced 2025-10-31 07:34:45 +00:00 
			
		
		
		
	Delete notification for a user about a post when updating it
This commit is contained in:
		| @@ -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") | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user