From 71fe689aaeeb1056f24ada4df0c5328c249dfc32 Mon Sep 17 00:00:00 2001
From: Michael <heluecht@pirati.ca>
Date: Wed, 6 Feb 2019 07:30:31 +0000
Subject: [PATCH] Some small notice prevented

---
 src/Object/Post.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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
-- 
2.39.5