]> git.mxchange.org Git - friendica-addons.git/commitdiff
Some more old photos ...
authorMichael <heluecht@pirati.ca>
Sat, 2 Dec 2017 08:03:59 +0000 (08:03 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 2 Dec 2017 08:03:59 +0000 (08:03 +0000)
statusnet/statusnet.php
twitter/twitter.php

index 3c6ac4995cad988726636829fed15d99f0583495..8433580f2a49e8c6be600a93e51edac28e6118db 100644 (file)
@@ -998,8 +998,6 @@ function statusnet_fetch_contact($uid, $contact, $create_user) {
                        group_add_member($uid,'',$contact_id,$g[0]['def_gid']);
                }
 
-               require_once("Photo.php");
-
                $photos = Photo::importProfilePhoto($contact->profile_image_url,$uid,$contact_id);
 
                q("UPDATE `contact` SET `photo` = '%s',
@@ -1025,8 +1023,6 @@ function statusnet_fetch_contact($uid, $contact, $create_user) {
 
                        logger("statusnet_fetch_contact: Updating contact ".$contact->screen_name, LOGGER_DEBUG);
 
-                       require_once("Photo.php");
-
                        $photos = Photo::importProfilePhoto($contact->profile_image_url, $uid, $r[0]['id']);
 
                        q("UPDATE `contact` SET `photo` = '%s',
index e38ea8a7e0cb0afa9bdce5ce24ebbdc01bbc2ff9..e8e89031646dcbdb6a5cae57cba0fbc8a8d0ee1c 100644 (file)
@@ -1024,8 +1024,6 @@ function twitter_fetch_contact($uid, $contact, $create_user) {
                        group_add_member($uid,'',$contact_id,$g[0]['def_gid']);
                }
 
-               require_once("Photo.php");
-
                $photos = Photo::importProfilePhoto($avatar, $uid, $contact_id, true);
 
                if ($photos) {
@@ -1057,8 +1055,6 @@ function twitter_fetch_contact($uid, $contact, $create_user) {
 
                        logger("twitter_fetch_contact: Updating contact ".$contact->screen_name, LOGGER_DEBUG);
 
-                       require_once("Photo.php");
-
                        $photos = Photo::importProfilePhoto($avatar, $uid, $r[0]['id'], true);
 
                        if ($photos) {