mirror of
https://github.com/friendica/friendica
synced 2024-11-10 02:22:55 +00:00
Possibly fix "Undefined index: url"
This commit is contained in:
parent
8707ced2f7
commit
1a86167ac5
1 changed files with 2 additions and 2 deletions
|
@ -989,7 +989,7 @@ class Processor
|
|||
$parent_author = Contact::getDetailsByURL($parent['author-link'], 0);
|
||||
|
||||
$implicit_mentions = [];
|
||||
if (empty($parent_author)) {
|
||||
if (empty($parent_author['url'])) {
|
||||
Logger::notice('Author public contact unknown.', ['author-link' => $parent['author-link'], 'item-id' => $parent['id']]);
|
||||
} else {
|
||||
$implicit_mentions[] = $parent_author['url'];
|
||||
|
@ -1003,7 +1003,7 @@ class Processor
|
|||
|
||||
foreach ($parent_terms as $term) {
|
||||
$contact = Contact::getDetailsByURL($term['url'], 0);
|
||||
if (!empty($contact)) {
|
||||
if (!empty($contact['url'])) {
|
||||
$implicit_mentions[] = $contact['url'];
|
||||
$implicit_mentions[] = $contact['nurl'];
|
||||
$implicit_mentions[] = $contact['alias'];
|
||||
|
|
Loading…
Reference in a new issue