From 6c7bce86fef859d685adc3b87389f0d44ffd7a52 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 20 Sep 2020 17:37:09 +0000 Subject: [PATCH] Avoid fatal error on the community page --- src/Object/Post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Object/Post.php b/src/Object/Post.php index 0de7bd072b..51b952d610 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -977,7 +977,7 @@ class Post if ($this->isToplevel()) { if ($conv->getMode() !== 'profile') { - if ($this->getDataValue('wall') && !$this->getDataValue('self')) { + if ($this->getDataValue('wall') && !$this->getDataValue('self') && !empty($a->page_contact)) { // On the network page, I am the owner. On the display page it will be the profile owner. // This will have been stored in $a->page_contact by our calling page. // Put this person as the wall owner of the wall-to-wall notice.