only update the avatar of an Ostatus_profile if it's a profile
This commit is contained in:
		| @@ -1045,7 +1045,10 @@ class Ostatus_profile extends Managed_DataObject | ||||
|         chmod(Avatar::path($filename), 0644); | ||||
|  | ||||
|         $profile = $this->localProfile(); | ||||
|         $profile->setOriginal($filename); | ||||
|          | ||||
|         if (!empty($profile)) { | ||||
|             $profile->setOriginal($filename); | ||||
|         } | ||||
|  | ||||
|         $orig = clone($this); | ||||
|         $this->avatar = $url; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user