mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
pubsubhubbub - discovery and notifier
This commit is contained in:
parent
abe6a3286e
commit
465ba71b58
4 changed files with 17 additions and 1 deletions
|
@ -83,6 +83,8 @@
|
|||
else
|
||||
killme();
|
||||
|
||||
$hub = get_config('system','huburl');
|
||||
|
||||
if($cmd != 'mail') {
|
||||
|
||||
require_once('include/group.php');
|
||||
|
@ -138,11 +140,14 @@
|
|||
|
||||
$atom = '';
|
||||
|
||||
$hubxml = ((strlen($hub)) ? '<link rel="hub" href="' . xmlify($hub) . '" />' . "\n" : '');
|
||||
|
||||
|
||||
$atom .= replace_macros($feed_template, array(
|
||||
'$feed_id' => xmlify($a->get_baseurl() . '/profile/' . $owner['nickname'] ),
|
||||
'$feed_title' => xmlify($owner['name']),
|
||||
'$feed_updated' => xmlify(datetime_convert('UTC', 'UTC', $updated . '+00:00' , ATOM_TIME)) ,
|
||||
'$hub' => $hubxml,
|
||||
'$name' => xmlify($owner['name']),
|
||||
'$profile_page' => xmlify($owner['url']),
|
||||
'$photo' => xmlify($owner['photo']),
|
||||
|
@ -297,5 +302,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
if((strlen($hub)) && ($cmd !== 'mail') && (followup == false)) {
|
||||
$params = array('hub.mode' => 'publish', 'hub.url' => $a->get_baseurl() . '/dfrn_poll/' . $owner['nickname'] );
|
||||
post_url($hub,$params);
|
||||
}
|
||||
|
||||
killme();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue