mirror of
https://github.com/pierre42100/ComunicAPI
synced 2025-06-19 16:45:17 +00:00
Can delete groups.
This commit is contained in:
@ -486,12 +486,6 @@ class PostsController {
|
||||
if(!CS::get()->components->posts->delete($postID))
|
||||
Rest_fatal_error(500, "Couldn't delete post!");
|
||||
|
||||
//Delete related notifications
|
||||
$notification = new Notification();
|
||||
$notification->set_on_elem_type(Notification::POST);
|
||||
$notification->set_on_elem_id($postID);
|
||||
components()->notifications->delete($notification);
|
||||
|
||||
//Success
|
||||
return array("success" => "The post has been deleted!");
|
||||
}
|
||||
|
Reference in New Issue
Block a user