1
1
Fork 0

Merge pull request #6753 from MrPetovan/bug/notices

Add missing author contact in ActivityPub\Processor
This commit is contained in:
Michael Vogel 2019-02-25 09:31:31 +01:00 committed by GitHub
commit 230c0a50e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'];
}