diff --git a/lib/Telegraph/HTTP.php b/lib/Telegraph/HTTP.php index 4fe0809..7dc687d 100644 --- a/lib/Telegraph/HTTP.php +++ b/lib/Telegraph/HTTP.php @@ -7,6 +7,7 @@ class HTTP { $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, true); + curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); $response = curl_exec($ch); $header_size = curl_getinfo($ch, CURLINFO_HEADER_SIZE); return array( @@ -22,6 +23,7 @@ class HTTP { curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $body); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); + curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_HEADER, true); if (self::$_proxy) curl_setopt($ch, CURLOPT_PROXY, self::$_proxy); $response = curl_exec($ch); @@ -39,6 +41,7 @@ class HTTP { curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_NOBODY, true); + curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); if (self::$_proxy) curl_setopt($ch, CURLOPT_PROXY, self::$_proxy); $response = curl_exec($ch); return array( diff --git a/lib/Telegraph/ProfileFetcher.php b/lib/Telegraph/ProfileFetcher.php index 0449db5..b707dc3 100644 --- a/lib/Telegraph/ProfileFetcher.php +++ b/lib/Telegraph/ProfileFetcher.php @@ -21,6 +21,8 @@ class ProfileFetcher { $user->photo = $representative['properties']['photo'][0]; } $user->save(); + } else { + echo "Couldn't find one\n"; } } diff --git a/public/assets/dashboard-screenshot.jpg b/public/assets/dashboard-screenshot.jpg new file mode 100644 index 0000000..c2c6cec Binary files /dev/null and b/public/assets/dashboard-screenshot.jpg differ diff --git a/scripts/telegraph.php b/scripts/telegraph.php index 3eb153c..00fcb26 100644 --- a/scripts/telegraph.php +++ b/scripts/telegraph.php @@ -2,4 +2,4 @@ chdir('..'); include('vendor/autoload.php'); -q()->run_workers(2); +q()->run_workers(4);