Browse Source

Picture import from Diaspora often failed

pull/1889/head
Michael Vogel 6 years ago
parent
commit
345b0d81dd
  1. 11
      include/dsprphotoq.php

11
include/dsprphotoq.php

@ -28,9 +28,14 @@ function dsprphotoq_run($argv, $argc){
foreach($dphotos as $dphoto) {
$r = q("SELECT * FROM user WHERE uid = %d",
intval($dphoto['uid'])
);
$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']));
if(!$r) {
logger("diaspora photo queue: user " . $dphoto['uid'] . " not found");
return;

Loading…
Cancel
Save