forked from GNUsocial/gnu-social
ImageFile $id argument is only for File objects
Remember to eliminate the Avatar/group logo call to ImageFile->resize!
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user