From: Mikael Nordfeldth Date: Tue, 27 Jan 2015 12:37:50 +0000 (+0100) Subject: a group's Profile will now correctly update group original avatar X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c8e0000c49e1f410d9ad61c15b84e74b4d1a628e;p=quix0rs-gnu-social.git a group's Profile will now correctly update group original avatar --- diff --git a/classes/Profile.php b/classes/Profile.php index 12672d2157..6f839baaea 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -155,6 +155,11 @@ class Profile extends Managed_DataObject public function setOriginal($filename) { + if ($this->isGroup()) { + // Until Group avatars are handled just like profile avatars. + return $this->getGroup()->setOriginal($filename); + } + $imagefile = new ImageFile($this->id, Avatar::path($filename)); $avatar = new Avatar();