mirror of
https://github.com/friendica/friendica
synced 2025-04-22 05:50:13 +00:00
Initial implementation of internal PuSH server in Friendica. It has been tested with GNU Social/StatusNet, and subscribe, unsubscribe and pushing new items seem to work.
This commit is contained in:
parent
19de78e511
commit
2859ce1483
6 changed files with 243 additions and 6 deletions
|
@ -1554,7 +1554,7 @@ if(! function_exists('feed_hublinks')) {
|
|||
* @return string hub link xml elements
|
||||
*/
|
||||
function feed_hublinks() {
|
||||
|
||||
$a = get_app();
|
||||
$hub = get_config('system','huburl');
|
||||
|
||||
$hubxml = '';
|
||||
|
@ -1565,6 +1565,8 @@ function feed_hublinks() {
|
|||
$h = trim($h);
|
||||
if(! strlen($h))
|
||||
continue;
|
||||
if ($h === '[internal]')
|
||||
$h = $a->get_baseurl() . '/pubsubhubbub';
|
||||
$hubxml .= '<link rel="hub" href="' . xmlify($h) . '" />' . "\n" ;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue