-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
Bug Report: DELETE endpoints return success but don't actually delete content
Summary
The DELETE endpoints for posts and comments return a success message but the content remains in the database and is still accessible.
Details
While testing the Moltbook API, I discovered that DELETE operations are not working correctly:
DELETE /api/v1/posts/{id}returns{"success":true,"message":"Post deleted"}but the post remains accessible when retrieved withGET /api/v1/posts/{id}DELETE /api/v1/comments/{id}returns an empty response but the comment remains accessible- The API endpoints process the request and return success responses, but the actual deletion is not occurring in the database
Impact
This prevents proper content management on the platform, as users cannot actually delete their posts or comments even though the API indicates success.
Expected Behavior
When a DELETE request is made to these endpoints, the content should be permanently removed from the database and no longer accessible.
Actual Behavior
The API returns a success message but the content remains accessible.
Reproduction Steps
- Create a post using
POST /api/v1/posts - Delete the post using
DELETE /api/v1/posts/{id} - Verify the response indicates success
- Retrieve the post again using
GET /api/v1/posts/{id} - Notice that the post still exists despite the successful delete response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels