We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

  1. 04 Nov, 2013 1 commit
  2. 29 Oct, 2013 1 commit
  3. 28 Oct, 2013 1 commit
  4. 23 Oct, 2013 1 commit
  5. 22 Oct, 2013 1 commit
  6. 14 Oct, 2013 1 commit
  7. 04 Oct, 2013 1 commit
  8. 01 Oct, 2013 1 commit
    • mattl's avatar
      Properly unlink all old avatars when deleting/uploading a new · b0dfc70a
      mattl 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!
      b0dfc70a
  9. 25 Sep, 2013 1 commit
  10. 23 Sep, 2013 1 commit
  11. 21 Sep, 2013 1 commit
  12. 29 Aug, 2013 3 commits
  13. 19 Aug, 2013 1 commit
    • mattl's avatar
      Don't use DB_DataObject::factory (statically at least) · 0785cc24
      mattl authored
      Not all instances of this has been fixed, but at least the ones
      in the base class of Memcached_DataObject.
      
      Avatar fix (in classes/Profile.php) requires a pkeyGet function
      in the Avatar class (or as in this tree, the parent class of
      Managed_DataObject)
      0785cc24
  14. 18 Aug, 2013 4 commits
    • mattl's avatar
      Managed_DataObject now has listGet for all classes · 97ce71e5
      mattl authored
      97ce71e5
    • mattl's avatar
      3ce5631b
    • mattl's avatar
      pkeyGet is now static and more similar to getKV · 861e838a
      mattl authored
      Memcached_DataObject now defines
         * pkeyGetClass to avoid collision with Managed_DataObject pkeyGet
         * getClassKV to avoid collision with Managed_DataObject getKV
      861e838a
    • mattl's avatar
      The overloaded DB_DataObject function staticGet is now called getKV · 2a4dc77a
      mattl authored
      I used this hacky sed-command (run it from your GNU Social root, or change the first grep's path to where it actually lies) to do a rough fix on all ::staticGet calls and rename them to ::getKV
      
         sed -i -s -e '/DataObject::staticGet/I!s/::staticGet/::getKV/Ig' $(grep -R ::staticGet `pwd`/* | grep -v -e '^extlib' | grep -v DataObject:: |grep -v "function staticGet"|cut -d: -f1 |sort |uniq)
      
      If you're applying this, remember to change the Managed_DataObject and Memcached_DataObject function definitions of staticGet to getKV!
      
      This might of course take some getting used to, or modification fo StatusNet plugins, but the result is that all the static calls (to staticGet) are now properly made without breaking PHP Strict Standards. Standards are there to be followed (and they caused some very bad confusion when used with get_called_class)
      
      Reasonably any plugin or code that tests for the definition of 'GNUSOCIAL' or similar will take this change into consideration.
      2a4dc77a
  15. 12 Aug, 2013 1 commit
    • mattl's avatar
      staticGet is a static function · 3394efca
      mattl authored
      We always call staticGet statically, so we define it statically. Next
      step is to remove a bunch of definitions of 'staticGet' from classes
      that can instead fall back to a parent class in Managed_DataObject.
      
      The ampersand is removed as we're returning a class anyway, which does
      not need a reference (and when we return false, it means nothing).
      3394efca
  16. 30 Aug, 2011 3 commits
  17. 24 Aug, 2011 1 commit
  18. 23 Aug, 2011 1 commit
  19. 19 Aug, 2011 1 commit
  20. 08 Aug, 2011 2 commits
    • Evan Prodromou's avatar
      Corrected pkeys for listGet() · f405ffa5
      Evan Prodromou authored
      f405ffa5
    • Evan Prodromou's avatar
      Store pkeys in cache for listGet() · ed31052d
      Evan Prodromou authored
      I was storing the full objects in the cache for the listGet()
      function. I've changed it to store only pkeys, and use pivotGet() to
      get all the corresponding values.
      
      This also required changing pivotGet() so it can get objects with
      multi-column pkeys, which complicated the whole thing quite a bit. But
      it seems to work OK.
      ed31052d
  21. 02 Aug, 2011 5 commits
  22. 14 Jul, 2011 2 commits
  23. 11 Jul, 2011 1 commit
  24. 11 Apr, 2011 1 commit
  25. 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?
      83fb5e60
  26. 31 Jan, 2011 2 commits
    • Brion Vibber's avatar
      Performance counters: records number of total and unique cache... · de7726dd
      Brion Vibber authored
      Performance counters: records number of total and unique cache get/set/incr/deletes and queries, and logs to syslog.
      
      $config['site']['logperf'] = true; // to record & dump total hits of each type and the runtime to syslog
      $config['site']['logperf_detail'] = true; // very verbose -- dump the individual cache keys and queries as they get used (may contain private info in some queries)
      
      Seeing 180 cache gets on a timeline page seems not unusual currently; since these run in serial, even relatively small roundtrip times can add up heavily.
      We should consider ways to reduce the number of round trips, such as more frequently storing compound objects or the output of processing in memcached.
      Doing parallel multi-key lookups could also help by collapsing round-trip times, but might not be easy to fit into SN's object model. (For things like streams this should actually work pretty well -- grab the list, then when it's returned go grab all the individual items in parallel and return the list)
      de7726dd
    • Brion Vibber's avatar
      Fix for ticket #3020: set MySQL session time_zone variable to UTC ('+0:00') so... · 54f7154d
      Brion Vibber authored
      Fix for ticket #3020: set MySQL session time_zone variable to UTC ('+0:00') so TIMESTAMP column values are comparable against our other UTC timestamp values.
      
      MySQL stores TIMESTAMP columns as UTC, but with a local time interface. (SRSLY?!) DATETIME columns are always bare and assumed to be local time, but we keep only UTC in them.
      Forcing the session time_zone to UTC means we won't have to worry as much about what we're sending/receiving in there.
      
      Also will let us remove the hack in master commit a7abb232 for session tweaks
      54f7154d