Mikael Nordfeldth a23c4aa236 Avatar resizing improvements and better code reuse
* getOriginal added to Avatar class
    This is a static function that retrieves the original avatar in a leaner
    way than Profile->getOriginalAvatar() did (see below).
    This will throw an Exception if there was none to be found.

* getProfileAvatars added to Avatar class
    This gets all Avatars from a profile and returns them in an array.

* newSize added to Avatar class
    This will scale an original avatar or throw an Exception (originally from
    Avatar::getOriginal) if one wasn't found.

* deleteFromProfile added to Avatar class
    Deletes all avatars for a Profile. This makes the code much smarter when
    removing all avatars from a user.
    Previously only specific, hardcoded (through constants) sizes would be
    deleted. If you ever changed lib/framework.php then many oddsized avatars
    would remain with the old method.

* Migrated Profile class to new Avatar::getOriginal support
    Profile class now uses Avatar::getOriginal through its own
    $this->getOriginalAvatar and thus remains backwards compatible.

* Updating stock GNU Social to use Avatar::getOriginal
    All places where core StatusNet code used the
    $profile->getOriginalAvatar, it will now useAvatar::getOriginal with
    proper error handling.

* Updated Profile class to use Avatar::newSize
    When doing setOriginal, the scaling will be done with the new method
    introduced in this merge.
    This also edits the _fillAvatar function to avoid adding NULL values to
    the array (which causes errors when attempting to access array entries as
    objects). See issue #3478 at http://status.net/open-source/issues/3478
2013-09-30 22:23:03 +02:00
..
2013-06-30 12:08:11 -04:00
2011-07-15 12:13:57 -07:00
2011-03-29 23:00:29 +02:00
2011-08-02 14:40:23 -04:00
2011-04-01 19:47:24 +02:00
2013-09-14 18:32:52 +02:00
2012-11-11 21:36:42 -05:00
2011-04-01 19:47:24 +02:00
2012-03-21 16:33:23 -04:00
2011-01-29 00:33:13 +01:00
2010-09-03 17:50:29 -04:00
2011-04-01 19:47:24 +02:00
2010-06-03 16:09:47 -07:00
2011-08-19 18:11:31 +02:00
2009-11-19 12:00:25 -05:00
2011-07-06 18:40:02 -04:00
2011-04-03 14:24:55 +02:00
2010-10-19 12:23:49 -07:00
2011-02-17 22:36:14 -08:00
2011-02-17 22:36:14 -08:00
2011-08-25 17:59:27 -04:00
2011-04-01 19:47:24 +02:00
2011-09-30 14:23:30 -04:00
2011-04-14 18:18:39 -04:00
2010-01-10 14:06:52 -08:00
2011-04-20 16:11:04 -04:00
2010-02-20 13:23:08 -05:00
2011-09-27 11:32:20 -04:00
2010-10-31 00:58:35 +02:00
2012-03-07 16:06:33 -06:00
2011-03-17 15:26:37 -04:00