]> git.mxchange.org Git - friendica-addons.git/commitdiff
fbpost: Adapted changed paths for pictures at facebook.
authorMichael Vogel <icarus@dabo.de>
Sun, 16 Mar 2014 18:08:17 +0000 (19:08 +0100)
committerMichael Vogel <icarus@dabo.de>
Sun, 16 Mar 2014 18:08:17 +0000 (19:08 +0100)
fbpost/fbpost.php

index 3b064a56a9ab308e52aa63dda8b7ac77fdfe8b61..9f8108f1f4bbda1c2c1272ec745bf2e846afce89 100644 (file)
@@ -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);