]> git.mxchange.org Git - friendica.git/commitdiff
Change the community value as well
authorMichael <heluecht@pirati.ca>
Fri, 11 May 2018 08:04:01 +0000 (08:04 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 11 May 2018 08:04:01 +0000 (08:04 +0000)
src/Network/Probe.php

index 4abfac44d4e12c6df428c00342ab736c89adb124..5f665814b4d3cda1c48e924e2c47e6c80dd04b0e 100644 (file)
@@ -395,6 +395,12 @@ class Probe
                                                'network' => $data['network'],
                                                'server_url' => $data['baseurl']];
 
+                               // This doesn't cover the case when a community isn't a community anymore
+                               if (!empty($data['community']) && $data['community']) {
+                                       $fields['community'] = $data['community'];
+                                       $fields['contact-type'] = ACCOUNT_TYPE_COMMUNITY;
+                               }
+
                                $fieldnames = [];
 
                                foreach ($fields as $key => $val) {