]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/FacebookBridge/actions/facebookfinishlogin.php
ImageFile $id argument is only for File objects
[quix0rs-gnu-social.git] / plugins / FacebookBridge / actions / facebookfinishlogin.php
index 53815ad264b1cb5a8815c8193fbfc330c7852425..03bcf6cfcd3002acbfdce31426618dda43e91f8c 100644 (file)
@@ -436,7 +436,7 @@ class FacebookfinishloginAction extends Action
                 } else {
                     // save it as an avatar
 
-                    $file = new ImageFile($user->id, Avatar::path($tmpname));
+                    $file = new ImageFile(null, Avatar::path($tmpname));
                     $filename = $file->resize(180); // size of the biggest img we get from Facebook
 
                     $profile   = $user->getProfile();