Detect an error in mailstream

This commit is contained in:
Matthew Exon 2021-04-26 20:48:20 +02:00
parent ef8d7703e5
commit c4e833581e

View file

@ -336,6 +336,11 @@ function mailstream_subject(array $item): string
);
return DI::l10n()->t("Friendica post");
}
$contact = $r[0];
if (!DBA::isResult($rows)) {
Logger::error('mailstream_subject no contact for item id ' . $item['id'] . ' plink ' . $item['plink'] . ' contact id ' . $item['contact-id'] . ' uid ' . $item['uid']);
return DI::l10n()->t("Friendica post");
}
if ($contact['network'] === 'dfrn') {
return DI::l10n()->t("Friendica post");
}