]> git.mxchange.org Git - friendica.git/commitdiff
Fixes notices
authorMichael <heluecht@pirati.ca>
Sun, 5 May 2019 14:12:43 +0000 (14:12 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 5 May 2019 14:12:43 +0000 (14:12 +0000)
src/Model/Contact.php
src/Model/Item.php

index 27ac3d33e1fec3669d71e66ef00177022879906a..181f7a5e47c5c0d7174096ffefa382d608e13e18 100644 (file)
@@ -2373,6 +2373,10 @@ class Contact extends BaseObject
         */
        public static function magicLinkByContact($contact, $url = '')
        {
+               if (empty($contact['id']) || empty($contact['uid'])) {
+                       return $url ?: $contact['url'];
+               }
+
                if ((!local_user() && !remote_user()) || ($contact['network'] != Protocol::DFRN)) {
                        return $url ?: $contact['url']; // Equivalent to ($url != '') ? $url : $contact['url'];
                }
index 387014d4b93e55883b1c90e0a081d4bc961be060..0882f316dc40f8b7fbd1e19077aad081ec75ed9f 100644 (file)
@@ -45,7 +45,7 @@ class Item extends BaseObject
 
        // Field list that is used to display the items
        const DISPLAY_FIELDLIST = [
-               'uid', 'id', 'parent', 'uri', 'thr-parent', 'parent-uri', 'guid', 'network', 'gravity',
+               'uid', 'id', 'parent', 'uri', 'thr-parent', 'parent-uri', 'guid', 'parent-guid', 'network', 'gravity',
                'commented', 'created', 'edited', 'received', 'verb', 'object-type', 'postopts', 'plink',
                'wall', 'private', 'starred', 'origin', 'title', 'body', 'file', 'attach', 'language',
                'content-warning', 'location', 'coord', 'app', 'rendered-hash', 'rendered-html', 'object',