fbpost/fbsync: Better picture support for facebook. Now the highest resolution is fetched.

This commit is contained in:
Michael Vogel 2014-07-27 16:07:30 +02:00
parent 1b41f6581b
commit 31ab2a3cbf
3 changed files with 36 additions and 8 deletions

View file

@ -307,8 +307,8 @@ function privacy_image_cache_img_cb($matches) {
$matches[2] = urldecode($queryvar['url']);
// if fetching facebook pictures don't fetch the thumbnail but the big one
if (((strpos($matches[2], ".fbcdn.net/") OR strpos($matches[2], "/fbcdn-photos-"))) and (substr($matches[2], -6) == "_s.jpg"))
$matches[2] = substr($matches[2], 0, -6)."_n.jpg";
//if (((strpos($matches[2], ".fbcdn.net/") OR strpos($matches[2], "/fbcdn-photos-"))) and (substr($matches[2], -6) == "_s.jpg"))
// $matches[2] = substr($matches[2], 0, -6)."_n.jpg";
// following line changed per bug #431
if (privacy_image_cache_is_local_image($matches[2]))