Fixed:
- "Undefined variable: contact in .../src/Protocol/Diaspora.php on line 4097 Trying to access array offset on value of type null in .../src/Protocol/Diaspora.php on line 4097" - see https://github.com/friendica/friendica/issues/11632#issuecomment-1189465336
This commit is contained in:
parent
4a11773d7e
commit
2ef0566ba5
|
@ -4081,6 +4081,7 @@ class Diaspora
|
||||||
*/
|
*/
|
||||||
public static function createCommentSignature(array $item)
|
public static function createCommentSignature(array $item)
|
||||||
{
|
{
|
||||||
|
$contact = [];
|
||||||
if (!empty($item['author-link'])) {
|
if (!empty($item['author-link'])) {
|
||||||
$url = $item['author-link'];
|
$url = $item['author-link'];
|
||||||
} else {
|
} else {
|
||||||
|
@ -4094,7 +4095,7 @@ class Diaspora
|
||||||
|
|
||||||
$uid = User::getIdForURL($url);
|
$uid = User::getIdForURL($url);
|
||||||
if (empty($uid)) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user