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