mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-08 09:28:49 +00:00
fbpost/fbsync: Better picture support for facebook. Now the highest resolution is fetched.
This commit is contained in:
parent
1b41f6581b
commit
31ab2a3cbf
3 changed files with 36 additions and 8 deletions
|
@ -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]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue