Merge pull request #6753 from MrPetovan/bug/notices
Add missing author contact in ActivityPub\Processor
This commit is contained in:
commit
230c0a50e8
|
@ -669,13 +669,16 @@ class Processor
|
||||||
|
|
||||||
$parent_author = Contact::getDetailsByURL($parent['author-link'], 0);
|
$parent_author = Contact::getDetailsByURL($parent['author-link'], 0);
|
||||||
|
|
||||||
$implicit_mentions = [
|
$implicit_mentions = [];
|
||||||
$parent_author['url'],
|
if (empty($parent_author)) {
|
||||||
$parent_author['nurl'],
|
Logger::notice('Author public contact unknown.', ['author-link' => $parent['author-link'], 'item-id' => $parent['id']]);
|
||||||
$parent_author['alias'],
|
} 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'];
|
$implicit_mentions[] = $parent['alias'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue