gnu-social/plugins/OStatus
Brion Vibber 5f5d9518bd Avoid spewing giant debug backtrace into exception in certain OStatus 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-05-04 17:11:43 -07:00
..
actions Disable the send-notice form at the top of the page OStatus subscription confirmation page to work around bugs in Cloudy theme. 2010-04-19 19:45:01 +02:00
classes Fix exceptions with bad gravatar URLs 2010-04-21 18:19:16 -07:00
extlib Updated Math_Biginteger from upstream - removing safe* workarounds 2010-03-24 15:18:41 -04:00
images First steps on converting FeedSub into the pub/sub basis for OStatus communications: 2010-02-08 11:15:29 -08:00
js Moved StatusNetInstance into SN in util.js 2010-02-24 16:35:20 +01:00
lib Avoid spewing giant debug backtrace into exception in certain OStatus subscription failure cases. 2010-05-04 17:11:43 -07:00
locale Pull localization updates from 0.9.x branch 2010-05-03 12:27:44 -07:00
scripts Rerun feed discovery and update the feed, salmon, and hub for the given OStatus remote profile. Restarts subscription fresh as well. 2010-04-23 12:54:31 -07:00
tests Improve legibility of OStatus remote tests output 2010-03-23 18:56:40 -07:00
theme/base/css Slight right alignment for remote button in minilists 2010-03-04 13:43:28 -05:00
OStatusPlugin.php Do ostatus queue first 2010-03-26 08:45:23 -04:00
README Drop HTMLPurifier; we don't need its extra capabilities and we're already using htmLawed which is lighter-weight. 2010-02-24 23:39:40 +00:00

README

Plugin to support importing updates from external RSS and Atom feeds into your timeline.

Uses PubSubHubbub for push feed updates; currently non-PuSH feeds cannot be subscribed.

Configuration options available:

$config['ostatus']['hub']
    (default internal hub)
    Set to URL of an external PuSH hub to use it instead of our internal hub.

$config['ostatus']['hub_retries']
    (default 0)
    Number of times to retry a PuSH send to consumers if using internal hub


For testing, shouldn't be used in production:

$config['ostatus']['skip_signatures']
    (default use signatures)
    Disable generation and validation of Salmon magicenv signatures

$config['feedsub']['nohub']
    (default require hub)
    Allow low-level feed subscription setup for feeds without hubs.
    Not actually usable at this stage, OStatus will check for hubs too
    and we have no polling backend.


Todo:
* fully functional l10n
* redo non-OStatus feed support
** rssCloud support?
** possibly a polling daemon to support non-PuSH feeds?
* make use of tags/categories from feeds