1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-20 16:35:17 +00:00

Start to delete posts

This commit is contained in:
2020-07-09 10:37:06 +02:00
parent bc8fdb13f1
commit af307671bb
3 changed files with 29 additions and 6 deletions

View File

@ -263,5 +263,9 @@ pub fn update_content(r: &mut HttpRequestHandler) -> RequestResult {
/// Delete a post
pub fn delete(r: &mut HttpRequestHandler) -> RequestResult {
r.success("Implement me")
let post = r.post_post_with_access("postID", PostAccessLevel::FULL_ACCESS)?;
posts_helper::delete(&post)?;
r.success("Post deleted.")
}