]> git.mxchange.org Git - friendica.git/commitdiff
improvements to Twitter probe
authorFriendika <info@friendika.com>
Wed, 21 Sep 2011 00:56:44 +0000 (17:56 -0700)
committerFriendika <info@friendika.com>
Wed, 21 Sep 2011 00:56:44 +0000 (17:56 -0700)
include/Scrape.php

index 0115bf2e71c9e1136d8bae666a48eb6dc212637e..fd41b7bc645fb9c92d8e3b58cacca95d5307c28d 100644 (file)
@@ -534,6 +534,9 @@ function probe_url($url, $mode = PROBE_NORMAL) {
                        else
                                $poll = $tapi . '?screen_name=' . $tid;
                        $profile = 'http://twitter.com/#!/' . $tid;
+                       $vcard['photo'] = 'https://api.twitter.com/1/users/profile_image/' . $tid;
+                       $vcard['nick'] = $tid;
+                       $vcar['fn'] = $tid . '@twitter';
                }
 
                if(! x($vcard,'fn'))