Alexei Sorokin 14e2621a05 [RSSCloud] Avoid the deprecated in PHP each() function | пре 4 година | |
---|---|---|
.. | ||
actions | пре 4 година | |
classes | пре 4 година | |
lib | пре 4 година | |
locale | пре 4 година | |
README.md | пре 4 година | |
RSSCloudPlugin.php | пре 4 година |
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.