]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix avatar saving for OStatus -- how did this ever work?
authorZach Copley <zach@status.net>
Wed, 29 Jun 2011 19:03:16 +0000 (19:03 +0000)
committerZach Copley <zach@status.net>
Wed, 29 Jun 2011 19:03:16 +0000 (19:03 +0000)
plugins/OStatus/classes/Ostatus_profile.php

index 0a748f79b8cfb39647c6739d07f79c6a1c2635f8..146784bb8a2198465aa541ee81ca99ca78bc0a7f 100644 (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;