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

@ -0,0 +1 @@
https://www.openculture.com/2025/05/how-frank-lloyd-wrights-architecture-evolved-over-70-years-and-changed-america.html

View file

@ -0,0 +1 @@
https://en.wikipedia.org/wiki/Rainhill_trials

View file

@ -0,0 +1 @@
https://fossforce.com/2025/04/is-free-or-open-source-software-sustainable/

View file

@ -0,0 +1 @@
https://manualdousuario.net/en/writing-chatgpt-ai/

View file

@ -0,0 +1 @@
https://goblackcat.com/feeling-exhausted/

View file

@ -0,0 +1 @@
https://fenati.org.br/brasil-prepara-marco-regulatorio-para-data-centers-com-beneficios-fiscais-e-regras-sustentaveis/#datacenter

View file

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