summaryrefslogtreecommitdiff
path: root/plugins/OStatus
AgeCommit message (Collapse)Author
2010-03-22Confirm there's actually user and domain portions of acct string before ↵Brion Vibber
assigning things from output of explode(); avoids notice message when invalid input passed to main/xrd
2010-03-22Fixing HTTP Header LRDD parsing (sites in subdirectories need this)James Walker
2010-03-22ignore unrecognized object typesEvan Prodromou
2010-03-21Merge branch 'testing' into 0.9.xBrion Vibber
2010-03-21Pull <atom:author> info as well as <activity:actor> when we have an ↵Brion Vibber
old-style ActivityStreams feed. This fixes subscription setup for Cliqset feeds, which currently have a bogus activity:actor/atom:id but a good atom:author/atom:uri
2010-03-21Accept 'tag' and other non-http id URIs in ↵Brion Vibber
Ostatus_profile::getActivityObjectProfileURI(). (If there's not a valid ID we fall back to the link, which we do still validate as http/s.)
2010-03-21OStatus profile setup cleanupBrion Vibber
* drop OStatusPlugin::localProfileFromUrl(), we can just look up on user.uri * clean up a few edge cases that returned null through Ostatus_profile::ensure* code paths, now throws clear exception when we can't find a feed from the given profile url * add some doc comments on the ensure* methods
2010-03-21only use Posterous author data if it matches the profile URLEvan Prodromou
2010-03-20use Posterous element if available for RssChannel discoveryEvan Prodromou
2010-03-20Merge branch 'testing' into 0.9.xEvan Prodromou
Conflicts: lib/activity.php
2010-03-20use feedEl for discoveryEvan Prodromou
2010-03-20fall back to summary or title if content not availableEvan Prodromou
2010-03-20Allow PuSH posts without author informationEvan Prodromou
Superfeedr (sp.?) posts entries without author information. We can assume that this is intended to be by the original author. Re-structured the checks for entries that come in by PuSH so they can either have no author or an empty author, but not a different author.
2010-03-20handle RSS as well as Atom in Ostatus push hitsEvan Prodromou
2010-03-20Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testingEvan Prodromou
2010-03-20try to make a nickname from the user profile url before using the URIEvan Prodromou
2010-03-19Avoid notices for accessing undefined array indices in hcard processingBrion Vibber
2010-03-19Avoid notices for accessing undefined array indices in hcard processingBrion Vibber
2010-03-19Merge branch 'testing' of git@gitorious.org:statusnet/mainline into 0.9.xBrion Vibber
Conflicts: plugins/OStatus/extlib/hkit/hkit.class.php plugins/OStatus/lib/discoveryhints.php
2010-03-19OStatus: be a little laxer about attempts to start/stop PuSH subscriptions ↵Brion Vibber
that were left in an inconsistent state. Instead of aborting, we'll try to reconfirm the sub/unsub, which once confirmed will replace whatever the previous state was on the server side.
2010-03-19Merge branch 'master' of git@gitorious.org:statusnet/mainline into testingBrion Vibber
2010-03-19ensure from an RSS channelEvan Prodromou
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-19clarify output on fixup-shadow.phpBrion Vibber
2010-03-19Merge branch 'ostatus-crop' of ↵Brion Vibber
git@gitorious.org:~brion/statusnet/brion-fixes into 0.9.x
2010-03-19Validate OStatus avatar URL before fetching.Brion Vibber
2010-03-19Validate OStatus avatar URL before fetching.Brion Vibber
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-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-18Merge branch 'testing' of git@gitorious.org:statusnet/mainline into 0.9.xBrion Vibber
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-18Fix notice warning about unused var -- was renamed during refactoring.Brion Vibber
2010-03-18Fix for xmpp/sms notification options appearing to be disabled on new ↵Brion Vibber
subscriptions. Base problem is that our caching-on-insert interferes with relying on column default values; the cached object is missing those fields, so they appear to be empty (null) when the object is retrieved from cache. Now explicitly setting them when inserting subscriptions, and cleaned up some code that had alternate code paths. May also have made auto-subscription work for remote OStatus subscribers, but can't test until magic sigs are working again.
2010-03-18Fix some remote subscription regressions from ↵Brion Vibber
f21f78364a9cbde2ca535a3983b384707ad097ae Ostatus_profile::ensureProfile() has been renamed to Ostatus_profile::ensureProfileURL()
2010-03-18Merge branch 'master' of git@gitorious.org:statusnet/mainline into testingBrion Vibber
2010-03-18Using &#8230; (hellip) instead of "more" for link textSarven Capadisli
2010-03-18reverse order from delete, insert to insert, delete on ostatus conversionEvan Prodromou
2010-03-18catch exceptions in OStatus updates, log, and continueEvan Prodromou
2010-03-18Updated 'more' anchor for attachments to do an XHR GETSarven Capadisli
2010-03-17Add doc comments on saveHTMLFile; drop the extra <div> wrapping the contents ↵Brion Vibber
to make it easier to extract without getting extra markup.
2010-03-17Tweak to OStatus long message cropping: use original source notice URL for ↵Brion Vibber
the link in the text version, don't shorten the link for the HTML so we can append params to it in JS.
2010-03-17When too-long messages come in via OStatus, mark the attachment link up as a ↵Brion Vibber
"more" link in the HTML output, marked with class="attachment more" so JS code can fold it out smartly. Text output will still include the raw link.
2010-03-17Merge branch 'testing' into 0.9.xBrion Vibber
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-15Merge branch 'testing' of git@gitorious.org:statusnet/mainline into 0.9.xBrion Vibber
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.