From 2471f2092a37eac2218d27178ffb48768195b032 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Wed, 29 Jun 2011 19:03:16 +0000 Subject: [PATCH] Fix avatar saving for OStatus -- how did this ever work? --- plugins/OStatus/classes/Ostatus_profile.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/OStatus/classes/Ostatus_profile.php b/plugins/OStatus/classes/Ostatus_profile.php index 0a748f79b8..146784bb8a 100644 --- a/plugins/OStatus/classes/Ostatus_profile.php +++ b/plugins/OStatus/classes/Ostatus_profile.php @@ -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; -- 2.39.5