updated history page
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -868,19 +868,18 @@ def api_delete_post(post_id: int):
|
||||
return _error("You don't have permission to delete this post.", 403)
|
||||
|
||||
try:
|
||||
add_audit_log({
|
||||
"user_id": user_id,
|
||||
"action": "post.deleted",
|
||||
"details": json.dumps({"deleted_post_id": post_id, "title": post.get("title")})
|
||||
})
|
||||
|
||||
delete_rag_chunks(post_id)
|
||||
delete_archive_files(post_id)
|
||||
delete_metadata(post_id)
|
||||
delete_rights(post_id)
|
||||
delete_audio_post(post_id)
|
||||
|
||||
add_audit_log({
|
||||
"post_id": post_id,
|
||||
"user_id": user_id,
|
||||
"action": "post.deleted",
|
||||
"details": json.dumps({"title": post.get("title")})
|
||||
})
|
||||
|
||||
return jsonify({"message": "Post deleted successfully", "post_id": post_id})
|
||||
|
||||
except Exception as e:
|
||||
|
||||
BIN
backend/uploads/00ce7e87-614d-44f7-a300-0ac8fb4af2bd_data.m4a
Normal file
BIN
backend/uploads/00ce7e87-614d-44f7-a300-0ac8fb4af2bd_data.m4a
Normal file
Binary file not shown.
BIN
backend/uploads/28b3ced4-4174-4555-ad9c-cb0adff1fbba_harvard.wav
Normal file
BIN
backend/uploads/28b3ced4-4174-4555-ad9c-cb0adff1fbba_harvard.wav
Normal file
Binary file not shown.
Reference in New Issue
Block a user