mirror of
				https://gitlab.com/comunic/comunicapiv3
				synced 2025-11-04 09:34:04 +00:00 
			
		
		
		
	Remove the post from the database
This commit is contained in:
		@@ -425,6 +425,11 @@ pub fn delete(p: &Post) -> ResultBoxError {
 | 
			
		||||
        _ => { /* Nothing to be done */ }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // Remove the post from the database
 | 
			
		||||
    database::DeleteQuery::new(POSTS_TABLE)
 | 
			
		||||
        .cond_u64("ID", p.id)
 | 
			
		||||
        .exec()?;
 | 
			
		||||
 | 
			
		||||
    Ok(())
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user