forked from GNUsocial/gnu-social
Same as last commit, don't give ID if it's not for a File object
This commit is contained in:
@@ -244,7 +244,7 @@ class Avatar extends Managed_DataObject
|
||||
|
||||
$original = Avatar::getUploaded($target);
|
||||
|
||||
$imagefile = new ImageFile($target->id, Avatar::path($original->filename));
|
||||
$imagefile = new ImageFile(null, Avatar::path($original->filename));
|
||||
$filename = $imagefile->resize($width);
|
||||
|
||||
$scaled = clone($original);
|
||||
|
Reference in New Issue
Block a user