forked from friendica/friendica-addons
fbpost: Adapted changed paths for pictures at facebook.
This commit is contained in:
parent
01efb523b7
commit
3eaefaa822
1 changed files with 1 additions and 1 deletions
|
@ -1173,7 +1173,7 @@ function fbpost_get_photo($uid,$link) {
|
||||||
|
|
||||||
function fpost_cleanpicture($image) {
|
function fpost_cleanpicture($image) {
|
||||||
|
|
||||||
if (strpos($image, ".fbcdn.net/") and (substr($image, -6) == "_s.jpg"))
|
if ((strpos($image, ".fbcdn.net/") OR strpos($image, "/fbcdn-photos-")) and (substr($image, -6) == "_s.jpg"))
|
||||||
$image = substr($image, 0, -6)."_n.jpg";
|
$image = substr($image, 0, -6)."_n.jpg";
|
||||||
|
|
||||||
$queryvar = fbpost_parse_query($image);
|
$queryvar = fbpost_parse_query($image);
|
||||||
|
|
Loading…
Reference in a new issue