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