This commit is contained in:
lizandrogd
2026-01-21 12:26:36 -05:00
parent 901d51c82f
commit b6ef6179b8
3 changed files with 77 additions and 4 deletions
+5
View File
@@ -0,0 +1,5 @@
<?php
require_once __DIR__ . '/../config/config.php';
$db = Database::getInstance();
$rows = $db->fetchAll('SELECT id,user_id,message_id,message_type,content,media_url,local_file,local_thumb,created_at FROM conversations WHERE (local_file IS NOT NULL OR local_thumb IS NOT NULL) ORDER BY created_at DESC LIMIT 20');
echo json_encode($rows, JSON_PRETTY_PRINT) . "\n";