Compare commits
No commits in common. "636e5025d296c2ccb38c487b9f615558e09331da" and "3d070c2fac87ea056bd9fbdeeadf827283b14fec" have entirely different histories.
636e5025d2
...
3d070c2fac
8 changed files with 4 additions and 10 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,5 +1,5 @@
|
||||||
/_already_sent/*
|
/already_sent/*
|
||||||
!/_already_sent/.gitkeep
|
!/already_sent/.gitkeep
|
||||||
/_credentials/*
|
/_credentials/*
|
||||||
!/_credentials/.gitkeep
|
!/_credentials/.gitkeep
|
||||||
/_vendor/*
|
/_vendor/*
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
https://www.openculture.com/2025/05/how-frank-lloyd-wrights-architecture-evolved-over-70-years-and-changed-america.html
|
|
|
@ -1 +0,0 @@
|
||||||
https://en.wikipedia.org/wiki/Rainhill_trials
|
|
|
@ -1 +0,0 @@
|
||||||
https://fossforce.com/2025/04/is-free-or-open-source-software-sustainable/
|
|
|
@ -1 +0,0 @@
|
||||||
https://manualdousuario.net/en/writing-chatgpt-ai/
|
|
|
@ -1 +0,0 @@
|
||||||
https://goblackcat.com/feeling-exhausted/
|
|
|
@ -1 +0,0 @@
|
||||||
https://fenati.org.br/brasil-prepara-marco-regulatorio-para-data-centers-com-beneficios-fiscais-e-regras-sustentaveis/#datacenter
|
|
|
@ -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";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue