Diogo Peralta Cordeiro 6e031d623a [VersionBump] 2.0.0beta0 | 3 tahun lalu | |
---|---|---|
.. | ||
actions | 3 tahun lalu | |
classes | 3 tahun lalu | |
lib | 3 tahun lalu | |
locale | 3 tahun lalu | |
README.md | 3 tahun lalu | |
RSSCloudPlugin.php | 3 tahun lalu |
This plugin enables RSSCloud (http://rsscloud.co/) publishing and subscription handling for RSS 2.0 profile feeds (i.e: http://SITE/PATH/api/statuses/user_timeline/USERNAME.rss). When the plugin is enabled, GNU social acts as both the publisher and hub ('writer' and 'cloud' in RSSCloud parlance), but only for local GNU social feeds. It's not possible to use it as a general purpose hub -- for instance you can't subscribe and get updates to a Wordpress feed from GNU social using this plugin.
To use the plugin, add the following to your config.php:
addPlugin('RSSCloud');
Enabling the plugin will add a element to your RSS 2.0 profile feeds that looks like this:
<cloud domain="SITE" port="80" path="/main/rsscloud/request_notify"
registerProcedure="" protocol="http-post"/>
Aggregators may subscribe by sending a proper REST RSSCloud subscription request (the optional 'domain' parameter with challenge is supported). Subscribing aggregators will be notified ('pinged') when users they have subscribed to post new notices. Currently, REST is the only protocol supported for notifications.
There's also a daemon for offline processing of queued notices with RSSCloud destinations, which will start automatically if/when you run scripts/startdaemons.sh.