Add missing author contact in ActivityPub\Processor

- Add logging for future occurrences
- Addresses https://github.com/friendica/friendica/issues/6338#issuecomment-466812104
2022.09-rc
Hypolite Petovan 2019-02-24 15:48:56 -05:00
rodzic 4c6c5786ad
commit 1f6e0f168c
1 zmienionych plików z 9 dodań i 6 usunięć

Wyświetl plik

@ -669,13 +669,16 @@ class Processor
$parent_author = Contact::getDetailsByURL($parent['author-link'], 0);
$implicit_mentions = [
$parent_author['url'],
$parent_author['nurl'],
$parent_author['alias'],
];
$implicit_mentions = [];
if (empty($parent_author)) {
Logger::notice('Author public contact unknown.', ['author-link' => $parent['author-link'], 'item-id' => $parent['id']]);
}else {
$implicit_mentions[] = $parent_author['url'];
$implicit_mentions[] = $parent_author['nurl'];
$implicit_mentions[] = $parent_author['alias'];
}
if ($parent['alias']) {
if (!empty($parent['alias'])) {
$implicit_mentions[] = $parent['alias'];
}