mirror of
				https://gitlab.com/comunic/comunicapiv2
				synced 2025-11-04 03:24:04 +00:00 
			
		
		
		
	Can delete posts
This commit is contained in:
		@@ -507,6 +507,11 @@ export class PostsHelper {
 | 
				
			|||||||
			if(await SurveyHelper.Exists(postID))
 | 
								if(await SurveyHelper.Exists(postID))
 | 
				
			||||||
				await SurveyHelper.Delete(postID);
 | 
									await SurveyHelper.Delete(postID);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							// Delete the post
 | 
				
			||||||
 | 
							await DatabaseHelper.DeleteRows(TABLE_NAME, {
 | 
				
			||||||
 | 
								ID: postID
 | 
				
			||||||
 | 
							});
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/**
 | 
						/**
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user