]> git.mxchange.org Git - friendica.git/commitdiff
Some small notice prevented
authorMichael <heluecht@pirati.ca>
Wed, 6 Feb 2019 07:30:31 +0000 (07:30 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 6 Feb 2019 07:30:31 +0000 (07:30 +0000)
src/Object/Post.php

index 847135d3621bf10945d71a652e694c4b9faa4a8f..6e2483c6a0c42e368c09dc06a2e0a641c3afb8da 100644 (file)
@@ -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