Merge pull request #9644 from annando/dfrn-deletions

Critical: Avoid dropping of incoming DFRN messages
2022.09-rc
Hypolite Petovan 2020-12-10 03:39:40 -05:00 zatwierdzone przez GitHub
commit 675f54e44f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -2709,9 +2709,11 @@ class DFRN
foreach ($deletions as $deletion) { foreach ($deletions as $deletion) {
self::processDeletion($xpath, $deletion, $importer); self::processDeletion($xpath, $deletion, $importer);
} }
if (count($deletions) > 0) {
Logger::notice('Deletions had been processed'); Logger::notice('Deletions had been processed');
return 200; return 200;
} }
}
if (!$sort_by_date) { if (!$sort_by_date) {
$entries = $xpath->query("/atom:feed/atom:entry"); $entries = $xpath->query("/atom:feed/atom:entry");