mirror of
https://github.com/friendica/friendica
synced 2025-04-24 10:30:11 +00:00
Fix: Feeds and mail accounts hadn't been fetched reliably
This commit is contained in:
parent
0d1fa70e2e
commit
3a1fef43b2
2 changed files with 11 additions and 5 deletions
|
@ -111,7 +111,7 @@ class OnePoll
|
|||
DBA::update('contact', ['last-update' => $updated], ['id' => $contact['id']]);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// We don't poll AP contacts by now
|
||||
if ($protocol === Protocol::ACTIVITYPUB) {
|
||||
Logger::log("Don't poll AP contact");
|
||||
|
@ -708,6 +708,9 @@ class OnePoll
|
|||
Logger::log("Mail: no mails for ".$mailconf['user']);
|
||||
}
|
||||
|
||||
self::updateContact($contact, ['failed' => false, 'last-update' => $updated, 'success_update' => $updated]);
|
||||
Contact::unmarkForArchival($contact);
|
||||
|
||||
Logger::log("Mail: closing connection for ".$mailconf['user']);
|
||||
imap_close($mbox);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue