Fix avatar saving for OStatus -- how did this ever work?

This commit is contained in:
Zach Copley 2011-06-29 19:03:16 +00:00
parent cc85afda3a
commit 2471f2092a
1 changed files with 2 additions and 1 deletions

View File

@ -1044,7 +1044,8 @@ class Ostatus_profile extends Managed_DataObject
// http://status.net/open-source/issues/2663
chmod(Avatar::path($filename), 0644);
$self->setOriginal($filename);
$profile = $this->localProfile();
$profile->setOriginal($filename);
$orig = clone($this);
$this->avatar = $url;