Merge pull request #1889 from annando/1509-diaspora-images
Bugfix: Picture import from Diaspora often failed
This commit is contained in:
commit
7a432a6739
|
@ -28,9 +28,14 @@ function dsprphotoq_run($argv, $argc){
|
|||
|
||||
foreach($dphotos as $dphoto) {
|
||||
|
||||
$r = array();
|
||||
|
||||
if ($dphoto['uid'] == 0)
|
||||
$r[0] = array("uid" => 0, "page-flags" => PAGE_FREELOVE);
|
||||
else
|
||||
$r = q("SELECT * FROM user WHERE uid = %d",
|
||||
intval($dphoto['uid'])
|
||||
);
|
||||
intval($dphoto['uid']));
|
||||
|
||||
if(!$r) {
|
||||
logger("diaspora photo queue: user " . $dphoto['uid'] . " not found");
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue