Picture import from Diaspora often failed
This commit is contained in:
parent
6b744aa71c
commit
345b0d81dd
1 changed files with 8 additions and 3 deletions
|
@ -28,9 +28,14 @@ function dsprphotoq_run($argv, $argc){
|
||||||
|
|
||||||
foreach($dphotos as $dphoto) {
|
foreach($dphotos as $dphoto) {
|
||||||
|
|
||||||
$r = q("SELECT * FROM user WHERE uid = %d",
|
$r = array();
|
||||||
intval($dphoto['uid'])
|
|
||||||
);
|
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']));
|
||||||
|
|
||||||
if(!$r) {
|
if(!$r) {
|
||||||
logger("diaspora photo queue: user " . $dphoto['uid'] . " not found");
|
logger("diaspora photo queue: user " . $dphoto['uid'] . " not found");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue