]> git.mxchange.org Git - friendica.git/blobdiff - include/onepoll.php
Show "Redmatrix" as network name.
[friendica.git] / include / onepoll.php
index d1f41d65f57e425808fe2d997f5b35c6560127c1..9723fadd5135d6a04b1dca75f0838ff844ee6836 100644 (file)
@@ -92,6 +92,10 @@ function onepoll_run(&$argv, &$argc){
        );
 
        if(! count($contacts)) {
+               // Maybe it is a Redmatrix account. Then we can fetch their contacts via poco
+               $contacts = q("SELECT `id`, `poco` FROM `contact` WHERE `id` = %d AND `poco` != ''", intval($contact_id));
+               if ($contacts)
+                       poco_load($contacts[0]['id'],$importer_uid,0,$contacts[0]['poco']);
                return;
        }