summaryrefslogtreecommitdiff
path: root/plugins/OStatus/lib
AgeCommit message (Collapse)Author
2010-03-26move base64_url_(encode|decode) to static functions in MagicsigJames Walker
2010-03-24Updated Math_Biginteger from upstream - removing safe* workaroundsJames Walker
2010-03-24A bit safer checking in the keypair parsingJames Walker
2010-03-23Don't spew XML parse warnings to output when checking a remote XRD pageBrion Vibber
2010-03-22Math_BigInteger doesn't correctly handle serialization/deserialization for a ↵Brion Vibber
value of 0, which can end up spewing notices to output and otherwise intefering with Salmon signature setup and verification when using memcached. Worked around this with a subclass that fixes the wakeup, used for the stored 0 value in the subclassed Crypt_RSA.
2010-03-22Fixing HTTP Header LRDD parsing (sites in subdirectories need this)James Walker
2010-03-19Avoid notices for accessing undefined array indices in hcard processingBrion Vibber
2010-03-19return empty hints if no hcard in the htmlEvan Prodromou
2010-03-19define a 'root' attribute for the channel or feedEvan Prodromou
2010-03-18Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testingEvan Prodromou
Conflicts: plugins/OStatus/extlib/hkit/hkit.class.php plugins/OStatus/lib/discoveryhints.php
2010-03-18Remove hkit and do our own hcard parsingEvan Prodromou
Parsing hcards for the data we need wasn't hard enough to justify using hkit. It was dependent on a number of external systems (something to run tidy), and only could handle XHTML. We now parse HTML with the PHP dom libraries used elsewhere, and scrape out our own hcards. Seems to work nicer and faster and most of all works with Google Buzz profile URLs.
2010-03-18Work around weird bug with HTML normalization via PHP DOM module; if source ↵Brion Vibber
had xmlns and xml:lang I ended up with double output, breaking the subsequent parsing. Will have to track this down later and report upstream if not already resolved.
2010-03-18OStatus discover fixes:Brion Vibber
* Subscription::start was sometimes passing users instead of profiles to hooks, which broke OStatus subscription notifications; now normalizing to profiles for processing. * H-card parsing would trigger a lot of PHP warnings and notices in hKit. Now suppressing warnings and notices for the duration of the call to keep them out of output when display_errors is on. * H-card parsing would trigger a PHP fatal error if the source page was not well-formed XML and Tidy was not present on the system. Switched normalization to use the PHP DOM module which is always present, as we have no need for Tidy's extra features here. * Trying to fetch avatars from Google profiles failed and triggered a PHP warning due to the relative URL not being resolved during h-card parsing. Now passing profile page URL into hKit by sneaking a <base> tag in while we normalize the HTML source. * Profile pages without a "Link" header could trigger PHP notices due to a bad NULL -> array(NULL) conversion in LinkHeader::getLink(). Now checking that there was a return value before converting single return value into array.
2010-03-17Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testingEvan Prodromou
2010-03-16Change the workflow to get better discoveryEvan Prodromou
Tried to re-structure the workflow of discovery to get more and richer data and hints.
2010-03-15Fix feed discovery: html:link@rel can contain multiple values; saw ↵Brion Vibber
rel="updates alternate" in the wild at http://tantek.com/ which broke old discovery code.
2010-03-15use canonical user url in xrdJames Walker
2010-03-13Performing & allowing host-meta discovery by http url (in addition to ↵James Walker
webfinger acct)
2010-03-11fix invalid separator in magic-public-key XRD and matching parsing.James Walker
2010-03-11remove hard-coded me:env check in magicenvelopeJames Walker
2010-03-11base64_encode/decode -> base64_url_encode/decodeJames Walker
2010-03-09OStatus: fix exception thrown on HTTP error during feed discoveryBrion Vibber
2010-03-04Catch a previously uncaught exception and add some additional debug logs for ↵James Walker
signature verification
2010-03-03refactor xrd to allow for ownerxrd - xrd document for the site owner.James Walker
introduced $config['webfinger']['owner'] for a custom xrd subject
2010-03-03OStatus: catchable exception instead of fatal when parsing valid XML that ↵Brion Vibber
isn't a valid XRD doc
2010-03-03Put all required field setup into AtomUserNoticeFeed and ↵Brion Vibber
AtomGroupNoticeFeed, consolidating some code. (RSS feeds pulling title, logo etc from the Atom data structure so we don't dupe it.) OStatus now calling the feed classes directly instead of faking a call into the API, should be less flakey.
2010-03-03Avoid warning/notice spew in XRD parser. Not all DOM nodes are elements.Brion Vibber
2010-03-01Merge branch 'work' into testingBrion Vibber
2010-03-01OStatus: support @example.com/path/to/profile mentions as well as ↵Brion Vibber
@profile@example.com (latter requires webfinger, former doesn't) Plus misc warnings/notices cleanup in the submission path.
2010-03-01Fix a bunch of notice & warning-level messages that were breaking my ↵Brion Vibber
inter-instance communications
2010-02-26MagicEnvelope::parse shouldn't be called staticallyJames Walker
2010-02-26removing some extraneous debug loggingJames Walker
2010-02-26move salmon posting to send application/magic-envelope+xml per ↵James Walker
http://salmon-protocol.googlecode.com/svn/trunk/draft-panzer-salmon-00.html#RPF
2010-02-26move signing to take a local actor profile and use local keysJames Walker
2010-02-26updating to use latest salmon NS definitionsJames Walker
2010-02-26more cleanupJames Walker
2010-02-26bad merge.. cleaning up missing webfinger bitsJames Walker
2010-02-26remove webfinger.phpJames Walker
2010-02-26salmon actually fetching remote keypairsJames Walker
2010-02-25Merge remote branch 'statusnet/testing' into testingJames Walker
Conflicts: plugins/OStatus/lib/webfinger.php
2010-02-25use a real keypair from discoveryJames Walker
2010-02-25cache Web responses in Webfinger libraryEvan Prodromou
2010-02-25use new hcard method for webfingerEvan Prodromou
2010-02-25typoJames Walker
2010-02-25removing the webfinger libJames Walker
2010-02-25adding a new, more generic "discovery" class that does LRDD discoJames Walker
(rather than webfinger specific)
2010-02-25adding some exception handling for magicenv parsingJames Walker
2010-02-25OStatus: abort processing of this PuSH in item if we got an exception, ↵Brion Vibber
rather than letting it be re-run.
2010-02-24OStatus: handle update-profile Salmon pingsBrion Vibber
2010-02-24- break OMB profile update pings to a background queueBrion Vibber
- add event hooks to profile update pings - send Salmon pings with custom update-profile event to OStatus subscribees and groups (subscribers will see it on your next post) - fix OStatus queues with overlong transport names, should work on DB queues now - Ostatus_profile::notifyActivity() and ::notifyDeferred() now can take XML, Notice, or Activity for convenience