From 3eaefaa822a95b1515e8644a1b28ede8be21b9c4 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 16 Mar 2014 19:08:17 +0100 Subject: [PATCH] fbpost: Adapted changed paths for pictures at facebook. --- fbpost/fbpost.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fbpost/fbpost.php b/fbpost/fbpost.php index 3b064a56..9f8108f1 100644 --- a/fbpost/fbpost.php +++ b/fbpost/fbpost.php @@ -1173,7 +1173,7 @@ function fbpost_get_photo($uid,$link) { 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"; $queryvar = fbpost_parse_query($image); -- 2.39.5