]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/User/PortableContacts.php
Merge pull request #13070 from xundeenergie/fix-share-via
[friendica.git] / src / Module / User / PortableContacts.php
index 6629994810e2a6950bc6c3bda47a08b68226a12f..f3d02383e16a47b82cf96c6a21ed1181bf362c69 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -223,17 +223,13 @@ class PortableContacts extends BaseModule
 
                        if ($selectedFields['network']) {
                                $entry['network'] = $contact['network'];
-                               if ($entry['network'] == Protocol::STATUSNET) {
-                                       $entry['network'] = Protocol::OSTATUS;
-                               }
-
                                if (($entry['network'] == '') && ($contact['self'])) {
                                        $entry['network'] = Protocol::DFRN;
                                }
                        }
 
                        if ($selectedFields['tags']) {
-                               $tags = str_replace(',', ' ', $contact['keywords']);
+                               $tags = str_replace(',', ' ', $contact['keywords'] ?? '');
                                $tags = explode(' ', $tags);
 
                                $cleaned = [];