*/
namespace Friendica\Worker;
-use Friendica\BaseObject;
-use Friendica\Content\Text\BBCode;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
}
if ($force) {
- Contact::updateFromProbe($contact_id, true);
+ Contact::updateFromProbe($contact_id, '', true);
}
$contact = DBA::selectFirst('contact', [], ['id' => $contact_id]);
}
// Decoding the header
- $subject = imap_mime_header_decode($meta->subject);
+ $subject = imap_mime_header_decode($meta->subject ?? '');
$datarray['title'] = "";
foreach ($subject as $subpart) {
if ($subpart->charset != "default") {
}
$headers = imap_headerinfo($mbox, $meta->msgno);
- $headers2 = imap_rfc822_parse_headers(imap_fetchheader($mbox, $meta->msgno));
- Logger::info('Got header', ['header' => $headers2]);
$object = [];