initial work on obj import, rename import_profile_photo to import_xchan_photo to more accurately state its purpose.

This commit is contained in:
redmatrix
2015-09-01 22:03:10 -07:00
parent c5578d7964
commit 6cc60ba477
10 changed files with 43 additions and 30 deletions

View File

@@ -1035,7 +1035,7 @@ function discover_by_url($url,$arr = null) {
dbesc(datetime_convert())
);
$photos = import_profile_photo($photo,$guid);
$photos = import_xchan_photo($photo,$guid);
$r = q("update xchan set xchan_photo_date = '%s', xchan_photo_l = '%s', xchan_photo_m = '%s', xchan_photo_s = '%s', xchan_photo_mimetype = '%s' where xchan_hash = '%s'",
dbesc(datetime_convert()),
dbesc($photos[0]),
@@ -1192,7 +1192,7 @@ function discover_by_webbie($webbie) {
dbescdate(datetime_convert())
);
}
$photos = import_profile_photo($vcard['photo'],$addr);
$photos = import_xchan_photo($vcard['photo'],$addr);
$r = q("update xchan set xchan_photo_date = '%s', xchan_photo_l = '%s', xchan_photo_m = '%s', xchan_photo_s = '%s', xchan_photo_mimetype = '%s' where xchan_hash = '%s'",
dbescdate(datetime_convert('UTC','UTC',$arr['photo_updated'])),
dbesc($photos[0]),