mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 08:58:49 +00:00
Photo to namespace
updates for Photo class moving to Friendica\Object namespace.
This commit is contained in:
parent
83f427a577
commit
30fa9ac76c
4 changed files with 15 additions and 13 deletions
|
@ -49,6 +49,7 @@ require_once 'include/enotify.php';
|
|||
use Friendica\Core\Config;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Model\GlobalContact;
|
||||
use Friendica\Object\Photo;
|
||||
|
||||
class StatusNetOAuth extends TwitterOAuth {
|
||||
function get_maxlength() {
|
||||
|
@ -999,7 +1000,7 @@ function statusnet_fetch_contact($uid, $contact, $create_user) {
|
|||
|
||||
require_once("Photo.php");
|
||||
|
||||
$photos = import_profile_photo($contact->profile_image_url,$uid,$contact_id);
|
||||
$photos = Photo::importProfilePhoto($contact->profile_image_url,$uid,$contact_id);
|
||||
|
||||
q("UPDATE `contact` SET `photo` = '%s',
|
||||
`thumb` = '%s',
|
||||
|
@ -1026,7 +1027,7 @@ function statusnet_fetch_contact($uid, $contact, $create_user) {
|
|||
|
||||
require_once("Photo.php");
|
||||
|
||||
$photos = import_profile_photo($contact->profile_image_url, $uid, $r[0]['id']);
|
||||
$photos = Photo::importProfilePhoto($contact->profile_image_url, $uid, $r[0]['id']);
|
||||
|
||||
q("UPDATE `contact` SET `photo` = '%s',
|
||||
`thumb` = '%s',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue