change _already_sent folder name

This commit is contained in:
Santiago Lema 2025-05-21 01:52:50 +00:00
parent 3d070c2fac
commit a147e99a42
7 changed files with 8 additions and 2 deletions

View file

@ -85,7 +85,7 @@ $headers = [
'Content-Type: application/json'
];
$alreadySentDir = __DIR__ . "/already_sent";
$alreadySentDir = __DIR__ . "/_already_sent";
if (!is_dir($alreadySentDir)) {
mkdir($alreadySentDir, 0755, true); // recursive mkdir
@ -106,7 +106,7 @@ if (isYouTubeLink($link)) {
// READECK will accept several times the same URL !
// Make sure we don't send it several times by keeping an archive here
$hash = md5($link);
$filePath = __DIR__ . "/already_sent/{$hash}.txt";
$filePath = __DIR__ . "/_already_sent/{$hash}.txt";
if (file_exists($filePath)) {
echo " Already sent: $link\n";