From 10e56309887faa6f726f62495fd67efd624440ac Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 10 May 2021 22:03:51 -0400 Subject: [PATCH] Don't assume $a->contact is populated in Object\Post::getCommentBox - Address https://github.com/friendica/friendica/issues/10167#issuecomment-837238584 - This might reveal some side-effect --- src/Object/Post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Object/Post.php b/src/Object/Post.php index ba8c709de..2e6eb1bf6 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -950,9 +950,9 @@ class Post '$qcomment' => $qcomment, '$default' => $default_text, '$profile_uid' => $uid, - '$mylink' => DI::baseUrl()->remove($a->contact['url']), + '$mylink' => DI::baseUrl()->remove($a->contact['url'] ?? ''), '$mytitle' => DI::l10n()->t('This is you'), - '$myphoto' => DI::baseUrl()->remove($a->contact['thumb']), + '$myphoto' => DI::baseUrl()->remove($a->contact['thumb'] ?? ''), '$comment' => DI::l10n()->t('Comment'), '$submit' => DI::l10n()->t('Submit'), '$loading' => DI::l10n()->t('Loading...'),