1. 10 Mar, 2015 1 commit
  2. 28 Feb, 2015 1 commit
  3. 12 Feb, 2015 1 commit
  4. 21 Apr, 2014 1 commit
  5. 29 Oct, 2013 1 commit
  6. 06 Oct, 2013 1 commit
  7. 05 Oct, 2013 1 commit
  8. 04 Oct, 2013 1 commit
    • mmn's avatar
      Twitter Import improvements. Still buggy? · fb4e9b23
      mmn authored
      Apparently mrvdb has problems with duplicate inserts and missing files when
      unlinking. It could be due to coding, or it could be due to parallelizing.
  9. 03 Oct, 2013 1 commit
  10. 02 Oct, 2013 2 commits
  11. 01 Oct, 2013 1 commit
    • mmn's avatar
      Properly unlink all old avatars when deleting/uploading a new · b0dfc70a
      mmn authored
      We're also now using $config['image']['jpegquality'] to determine the
      quality setting for resized images.
      To set Avatar max size, adjust $config['avatar']['maxsize']
      The getAvatar call now throws exceptions too. Related changes applied.
      Now let's move Profile->avatarUrl to the Avatar class!
  12. 30 Sep, 2013 1 commit
    • mmn's avatar
      Avatar resizing improvements and better code reuse · a23c4aa2
      mmn authored
      * 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
  13. 29 Aug, 2013 1 commit
  14. 18 Aug, 2013 1 commit
    • mmn's avatar
      pkeyGet is now static and more similar to getKV · 861e838a
      mmn authored
      Memcached_DataObject now defines
         * pkeyGetClass to avoid collision with Managed_DataObject pkeyGet
         * getClassKV to avoid collision with Managed_DataObject getKV
  15. 12 Aug, 2013 1 commit
    • mmn's avatar
      staticGet for sub-Managed_DataObject classes now calls parent · 1a9a8ea7
      mmn authored
      The parent class for our database objects, Managed_DataObject, has a
      dynamically assigned class in staticGet which objects get put into,
      leaving us with less code to do the same thing.
      We will probably have to move away from the DB_DataObject 'staticGet'
      call as it is nowadays deprecated.
  16. 03 Sep, 2011 1 commit
    • Jean Baptiste Favre's avatar
      Adds new feature to dispatch avatar url between different servers. · 98f064e4
      Jean Baptiste Favre authored
      That allows parallel download from most browsers.
      To avoid caching issue, server choice is "profile_id" based so that
      avatar from a specific user will always be served from same server.
      Introduce new configuration parameter:
      $config['avatar']['server_modulo'] = 5;
      Very easy to implement using, for example, DNS wildcard.
      For example, if you have following configuration:
      $config['avatar']['server']        = 'static_rrdns_.domain.tld';
      $config['avatar']['server_modulo'] = 5;
      Then, when building avatar's URL, domain will become, depending on profile_id:
  17. 22 Aug, 2011 1 commit
  18. 02 Aug, 2011 1 commit
  19. 18 Apr, 2011 1 commit
  20. 22 Mar, 2011 1 commit
    • Evan Prodromou's avatar
      Mass replacement of #-comments with //-comments · 83fb5e60
      Evan Prodromou authored
      like leprous boils in our code. So, I've replaced all of them with //
      comments instead. It's a massive, meaningless, and potentially buggy
      change -- great one for the middle of a release cycle, eh?
  21. 28 Sep, 2010 1 commit
  22. 11 Feb, 2010 1 commit
  23. 06 Jan, 2010 1 commit
  24. 25 Nov, 2009 2 commits
  25. 08 Nov, 2009 1 commit
    • Evan Prodromou's avatar
      Restructure theme.php to define a class Theme · b7e2e3fd
      Evan Prodromou authored
      For various reasons, it's nicer to have a class for theme-file paths
      and such. So, I've rewritten the code for determining the locations of
      theme files to be more OOPy.
      I changed all the uses of the two functions in the module (theme_file
      and theme_path) to use Theme::file and Theme::path respectively.
      I've also removed the code in common.php that require's the module;
      using a class means we can autoload it instead.
  26. 14 Oct, 2009 1 commit
  27. 15 Jun, 2009 1 commit
  28. 06 Feb, 2009 2 commits
  29. 05 Feb, 2009 1 commit
  30. 25 Dec, 2008 1 commit
  31. 12 Dec, 2008 1 commit
  32. 23 Dec, 2008 3 commits
    • Evan Prodromou's avatar
      change function headers to K&R style · 04ef1ba8
      Evan Prodromou authored
      Another huge change, for PEAR code standards compliance. Function
      headers have to be in K&R style (opening brace on its own line),
      instead of having the opening brace on the same line as the function
      and parameters. So, a little perl magic found all the function
      definitions and move the opening brace to the next line (properly
      indented... usually).
    • Evan Prodromou's avatar
      replace NULL with null · eb2f9c98
      Evan Prodromou authored
      Another global search-and-replace update. Here, I've replaced the PHP
      keyword 'NULL' with its lowercase version. This is another PEAR code
      standards change.
    • Evan Prodromou's avatar
      replace all tabs with four spaces · edbc0c66
      Evan Prodromou authored
      The PEAR coding standards decree: no tabs, but indent by four spaces.
      I've done a global search-and-replace on all tabs, replacing them by
      four spaces. This is a huge change, but it will go a long way to
      getting us towards phpcs-compliance. And that means better code
      readability, and that means more participation.
  33. 04 Dec, 2008 1 commit
  34. 02 Oct, 2008 1 commit
  35. 26 Sep, 2008 1 commit