contact photo issues
This commit is contained in:
parent
7d1610197d
commit
6ed27f9503
@ -528,7 +528,7 @@ class Photo {
|
||||
$x = q("select id from photo where `resource_id` = '%s' and uid = %d and `xchan` = '%s' and `scale` = %d limit 1",
|
||||
dbesc($rid),
|
||||
intval($uid),
|
||||
intval($xchan),
|
||||
dbesc($xchan),
|
||||
intval($scale)
|
||||
);
|
||||
if(count($x)) {
|
||||
|
@ -406,7 +406,7 @@ function import_xchan_from_json($j) {
|
||||
|
||||
require_once("Photo.php");
|
||||
|
||||
$photos = import_profile_photo($j->photo,0,$xchan_hash);
|
||||
$photos = import_profile_photo($j->photo,$xchan_hash);
|
||||
$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' limit 1",
|
||||
dbesc($j->photo_updated),
|
||||
@ -524,7 +524,7 @@ function import_xchan($arr) {
|
||||
|
||||
require_once("Photo.php");
|
||||
|
||||
$photos = import_profile_photo($arr['photo'],0,$xchan_hash);
|
||||
$photos = import_profile_photo($arr['photo'],$xchan_hash);
|
||||
$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' limit 1",
|
||||
dbesc($arr['photo_updated']),
|
||||
|
@ -1 +1 @@
|
||||
2012-12-05.160
|
||||
2012-12-06.161
|
||||
|
Reference in New Issue
Block a user