1. 18 Mar, 2017 1 commit
  2. 17 Jul, 2015 1 commit
  3. 28 Oct, 2013 1 commit
  4. 14 Oct, 2013 1 commit
  5. 18 Aug, 2013 1 commit
    • mmn's avatar
      The overloaded DB_DataObject function staticGet is now called getKV · 2a4dc77a
      mmn 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
  6. 27 Apr, 2011 1 commit
  7. 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
  8. 08 Oct, 2010 1 commit
  9. 07 Sep, 2010 2 commits
    • Brion Vibber's avatar
      Quick fix for #2659: unable to login with Livejournal OpenID · d470c007
      Brion Vibber authored
      The Net::OpenID::Server perl module that LJ uses appears to be very picky about input, and rejects most request types unless the data comes in as GET parameters (apparently following OpenID 1.1 rules, rather than OpenID 2.0 rules which permit any request to be POSTed but requires that if so, the data must all be in the POST body).
      Apparently something got updated on LJ at some point that's either added that behavior or (more likely) added the OpenID 2.0 namespace info to discovery, which tells the Janrain-based OpenID libraries that they should go ahead and do POST requests instead of redirects to GET requests... thus breaking everything. ;)
      
      GET should be just fine for both 1.1 and 2.0 though, and also saves having to sit through that lame autosubmit page.
      
      Switched the authentication submission from checking whether it should redirect to GET or do a form POST, to simply always doing the redirect to GET.
      
      Tested against providers:
      * LiveJournal
      * Google
      * LaunchPad
      * identi.ca
      d470c007
    • Brion Vibber's avatar
      Quick fix for #2659: unable to login with Livejournal OpenID · 961aba68
      Brion Vibber authored
      The Net::OpenID::Server perl module that LJ uses appears to be very picky about input, and rejects most request types unless the data comes in as GET parameters (apparently following OpenID 1.1 rules, rather than OpenID 2.0 rules which permit any request to be POSTed but requires that if so, the data must all be in the POST body).
      Apparently something got updated on LJ at some point that's either added that behavior or (more likely) added the OpenID 2.0 namespace info to discovery, which tells the Janrain-based OpenID libraries that they should go ahead and do POST requests instead of redirects to GET requests... thus breaking everything. ;)
      
      GET should be just fine for both 1.1 and 2.0 though, and also saves having to sit through that lame autosubmit page.
      
      Switched the authentication submission from checking whether it should redirect to GET or do a form POST, to simply always doing the redirect to GET.
      
      Tested against providers:
      * LiveJournal
      * Google
      * LaunchPad
      * identi.ca
      961aba68
  10. 28 May, 2010 1 commit
    • Brion Vibber's avatar
      OpenID: add option to enable asking for a username to append to the trusted... · 58fe1a59
      Brion Vibber authored
      OpenID: add option to enable asking for a username to append to the trusted provider's base URL. Good for hooking up with sites like WikiHow, where usernames are appended to a base URL to get a profile URL which is used as the provider.
      
      $config['openid']['append_username'] = true;
      or check 'Append a username to base URL' in OpenID admin panel.
      58fe1a59
  11. 26 May, 2010 1 commit
    • Brion Vibber's avatar
      WikiHowProfile plugin; pulls avatar from WikiHow profile pages when... · 9193c110
      Brion Vibber authored
      WikiHowProfile plugin; pulls avatar from WikiHow profile pages when registering or adding account with OpenID. (Full name, location, homepage, and bio are also on the profile page but not marked up in a way they can be easily retrieved yet.)
      
      OpenID plugin: Added events at OpenID account creation and update time to allow additional customizations for particular sites.
      9193c110
  12. 18 May, 2010 1 commit
    • Brion Vibber's avatar
      OpenID access control options: trusted provider URL, Launchpad team... · 7c828ae5
      Brion Vibber authored
      OpenID access control options: trusted provider URL, Launchpad team restrictions. Added an admin panel for setting these and OpenID-only mode, off by default.
      
      To enable the admin panel:
          $config['admin']['panels'][] = 'openid';
      
      Or to set them manually:
          $config['openid']['trusted_provider'] = 'https://login.ubuntu.net/';
          $config['openid']['required_team'] = 'my-project-cabal';
          $config['site']['openidonly'] = true;
      
      OpenID-only mode can still be set from addPlugin() parameters as well for backwards compatibility.
      Note: if it's set there, that value will override the setting from the database or config.php.
      
      Note that team restrictions are only really meaningful if a trusted provider is set; otherwise,
      any OpenID server could report back that users are members of the given team.
      
      Restrictions are checked only at OpenID authentication time and will not kick off people currently
      with a session open; existing remembered logins may also survive these changes.
      
      Using code for Launchpad team support provided by Canonical under AGPLv3, pulled from r27 of
      WordPress teams integration plugin:
          https://code.edge.launchpad.net/~canonical-isd-hackers/wordpress-teams-integration/trunk
      7c828ae5
  13. 30 Apr, 2010 1 commit
  14. 23 Apr, 2010 1 commit
  15. 25 Mar, 2010 2 commits
  16. 12 Mar, 2010 1 commit
    • Brion Vibber's avatar
      OpenID fixes: · 4d7479dc
      Brion Vibber authored
      - avoid notice spew when checking sreg items that weren't provided
      - fix keys spec for user_openid, clears up problems with removing openid associations
      - fix keys spec for user_openid_trustroot
      4d7479dc
  17. 08 Dec, 2009 1 commit
  18. 13 Nov, 2009 1 commit
    • Brion Vibber's avatar
      Fix regression in OpenID autosubmit page. · 50234be3
      Brion Vibber authored
      Since core JS loads were moved to the bottom, the JavaScript was being run before jQuery was loaded, so the onload event never got set. Moved it down to the scripts section.
      50234be3
  19. 09 Nov, 2009 1 commit
  20. 08 Nov, 2009 3 commits
  21. 29 Oct, 2009 1 commit
  22. 26 Oct, 2009 1 commit
  23. 04 Aug, 2009 2 commits
  24. 20 Jun, 2009 2 commits
  25. 01 Apr, 2009 2 commits
    • Evan Prodromou's avatar
      Try to do intelligent redirect codes · 5067939e
      Evan Prodromou authored
      After fixing the redirect code output, there are a lot of weirdnesses
      with e.g. form handling. Try to add explicit redirect codes where
      needed -- principly when handling a POST.
      5067939e
    • Evan Prodromou's avatar
      Try to do intelligent redirect codes · c172cbaf
      Evan Prodromou authored
      After fixing the redirect code output, there are a lot of weirdnesses
      with e.g. form handling. Try to add explicit redirect codes where
      needed -- principly when handling a POST.
      c172cbaf
  26. 31 Mar, 2009 1 commit
  27. 07 Mar, 2009 1 commit
  28. 20 Feb, 2009 1 commit
  29. 23 Jan, 2009 1 commit
  30. 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).
      
      darcs-hash:20081223193323-84dde-a28e36ecc66672c783c2842d12fc11043c13ab28.gz
      04ef1ba8
    • 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.
      
      darcs-hash:20081223192129-84dde-4a0182e0ec16a01ad88745ad3e08f7cb501aee0b.gz
      eb2f9c98
    • 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.
      
      darcs-hash:20081223191907-84dde-21e8efe210e6d5d54e935a22d0cee5c7bbfc007d.gz
      edbc0c66
  31. 08 Jul, 2008 1 commit