]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Group logos would not be fetched
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 5 Oct 2013 23:30:44 +0000 (01:30 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 5 Oct 2013 23:33:27 +0000 (01:33 +0200)
update_ostatus_profiles.php did this correctly, but not Ostatus_profile.php

plugins/OStatus/classes/Ostatus_profile.php

index 89c88d94491a95c0047fdc26251ab1679d3907b2..7fefba758e54b8dec42cb3f8b4800fd8d12b5cee 100644 (file)
@@ -1249,11 +1249,7 @@ class Ostatus_profile extends Managed_DataObject
         // http://status.net/open-source/issues/2663
         chmod(Avatar::path($filename), 0644);
 
-        $profile = $this->localProfile();
-
-        if (!empty($profile)) {
-            $profile->setOriginal($filename);
-        }
+        $self->setOriginal($filename);
 
         $orig = clone($this);
         $this->avatar = $url;