mirror of
https://github.com/friendica/friendica
synced 2024-12-22 23:20:16 +00:00
Merge pull request #11753 from Quix0r/fixes/missing-contact-array
Fixed missing $contact array, at least initialize it empty
This commit is contained in:
commit
d69ac56338
1 changed files with 2 additions and 1 deletions
|
@ -4081,6 +4081,7 @@ class Diaspora
|
|||
*/
|
||||
public static function createCommentSignature(array $item)
|
||||
{
|
||||
$contact = [];
|
||||
if (!empty($item['author-link'])) {
|
||||
$url = $item['author-link'];
|
||||
} else {
|
||||
|
@ -4094,7 +4095,7 @@ class Diaspora
|
|||
|
||||
$uid = User::getIdForURL($url);
|
||||
if (empty($uid)) {
|
||||
Logger::info('No owner post, so not storing signature', ['url' => $contact['url']]);
|
||||
Logger::info('No owner post, so not storing signature', ['url' => $contact['url'] ?? 'No contact loaded']);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue