You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -997,9 +1007,7 @@ async function checkStaleProviders(env) {
997
1007
constemailBody=`Hi ${data.org},\n\nYour AcreetionOS hosting provider listing has been flagged as inactive.\n\nYour ISO mirror (${data.mirror_url}) has not been reachable for 14 days. Per our requirements, providers must maintain an active mirror.\n\nIf you believe this is an error, please contact us at developers@acreetionos.org or re-register at https://acreetionos.org/hosting.html\n\nIf we don't hear from you within 7 days, your listing will be automatically removed.\n\n- AcreetionOS Team`;
`**⚠️ Provider Inactivity Warning**\n**Provider:** ${data.org}\n**Email:** ${data.email}\n**ISO:** ${data.mirror_url}\n**Last seen:** ${data.last_seen||'Never'}\n**Grace period:** 7 days before removal\n\nWarning email sent to provider.`
`**🚨 MALWARE DETECTED — Provider Auto-Deregistered**\n**Provider:** ${flagged.org}\n**Email:** ${flagged.email}\n**ISO:** ${flagged.mirror_url}\n**Method:** ${flagged.scan_method}\n**Malicious detections:** ${flagged.malicious||0}\n**Issues:** ${(flagged.issues||[]).join(', ')}\n\nProvider has been immediately removed from the website.`
@@ -1057,10 +1065,15 @@ async function handleHostingScan(request, env) {
1057
1065
}
1058
1066
1059
1067
// Check for stale/expired providers (not seen in 14+ days)
1060
-
constexpired=awaitcheckStaleProviders(env);
1061
-
if(expired.length>0){
1068
+
conststaleResult=awaitcheckStaleProviders(env);
1069
+
if(staleResult.warned.length>0){
1070
+
sendDiscordWebhook(env,
1071
+
`**⚠️ Providers Warned (Inactive 14+ Days)**\n${staleResult.warned.map(e=>`- ${e.org} (${e.email}) — Last seen: ${e.last_seen||'never'}`).join('\n')}\n\nWarning email sent. 7-day grace period started.`
1072
+
);
1073
+
}
1074
+
if(staleResult.expired.length>0){
1062
1075
sendDiscordWebhook(env,
1063
-
`**⏰ Providers Expired (Inactive 14+ Days)**\n${expired.map(e=>`- ${e.org} (${e.email}) — Last seen: ${e.last_seen||'never'}`).join('\n')}\n\nThey have been removed and notified.`
1076
+
`**⏰ Providers Removed (Inactive 21+ Days)**\n${staleResult.expired.map(e=>`- ${e.org} (${e.email}) — Last seen: ${e.last_seen||'never'}`).join('\n')}\n\nThey have been removed and notified.`
1064
1077
);
1065
1078
}
1066
1079
@@ -1669,7 +1682,7 @@ async function handleCVEFeed(env, ctx) {
1669
1682
returnnewResponse(JSON.stringify({error: 'No CVE data available',cves: [],count: 0}),{headers: corsHeaders({headers: {get: ()=>''}})});
0 commit comments