From: Michael Date: Wed, 6 Feb 2019 07:30:31 +0000 (+0000) Subject: Some small notice prevented X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=71fe689aaeeb1056f24ada4df0c5328c249dfc32;p=friendica.git Some small notice prevented --- diff --git a/src/Object/Post.php b/src/Object/Post.php index 847135d362..6e2483c6a0 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -775,12 +775,12 @@ class Post extends BaseObject */ private function getDefaultText() { - if (!local_user()) { + $a = self::getApp(); + + if (!local_user() || empty($a->profile['addr'])) { return; } - $a = self::getApp(); - $item = Item::selectFirst(['author-addr'], ['id' => $this->getId()]); if (!DBA::isResult($item) || empty($item['author-addr'])) { // Should not happen