summaryrefslogtreecommitdiff
path: root/plugins/OStatus/lib
AgeCommit message (Collapse)Author
2010-09-19* i18n/L10n updateSiebrand Mazeland
* translator comments added * remove superfluous whitespace
2010-09-12Add translator hint.Siebrand Mazeland
2010-09-03syntax error in exception string in discovery.phpEvan Prodromou
2010-09-03* i18n/L10n updates and FIXMEs addedSiebrand Mazeland
* whitespace fixes
2010-09-01send a salmon slap to mentioned person when we reply to a noticeEvan Prodromou
2010-08-16typo mixing up and in salmonactionEvan Prodromou
2010-08-13Suppress whinging during HTML parsing in profile page discovery for things ↵Brion Vibber
that turn out to be XML feeds with funny namespaces.
2010-08-10Initial support for third-party fallback hub such as Superfeedr for feed ↵Brion Vibber
subscriptions. If set up, this hub will be used to subscribe to feeds that don't specify a hub of their own. Assumes that the fallback hub will, in fact, handle polling and updates for any feed we throw at it! Authentication may be specified for the fallback hub. Example: $config['feedsub']['fallback_hub'] = 'https://superfeedr.com/hubbub'; $config['feedsub']['hub_user'] = 'abcd'; $config['feedsub']['hub_pass'] = 'ckcmdkmckdmkcdk'; Also: * Fix for WordPress-RSS-via-Superfeedr-Atom; if we have <author> info but no ID from a native ActivityStreams actor, don't freak out in the low-level processing code that checks for identity matches. * enhanced messages for low-level FeedSub exceptions if they make it to outside display
2010-08-07strip whitespace from me:data and me:sig (per spec)James Walker
2010-08-02Fix for #2429 - move OStatus XML writing to XMLStringerJames Walker
2010-08-02fix #2478 - ensure all XRD documents get proper content-type headersJames Walker
2010-08-02move to rel="salmon" (per latest spec)James Walker
2010-07-12Commit hubprepqueuehandler.php -- fix for OStatus bulk output.Brion Vibber
2010-06-07OStatus plugin: Rolling batch queueing for PuSH output to >50 subscribing ↵Brion Vibber
sites. Keeps latency down for other things enqueued while we work...
2010-05-21Avoid PHP notice about undefined array index when no avatar photo available ↵Brion Vibber
from Google profile
2010-05-14accept either salmon endpoint (until they're unified in the spec)James Walker
2010-05-04Avoid spewing giant debug backtrace into exception in certain OStatus ↵Brion Vibber
subscription failure cases. The code pattern 'new XXXException($e)' to chain exceptions doesn't actually work as intended, as exceptions are actually expecting a string message here. This caused an implicit string conversion from HTTP_Request2_Exception, which is a PEAR_Exception, which defines an absurdly detailed __toString() method including a giant HTML table with a backtrace if you happen to be on a web request. Simply passing $e->getMessage() instead clears this up, as we'll get the nice short message like 'Couldn't connect to tcp://blahblah:80'
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