diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-09-30 20:24:03 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-09-30 20:24:03 -0700 |
commit | 465ba71b584ad596729c23717226a9bdeb896553 (patch) | |
tree | 87ccb7f69d45cbedb73691a17da56f0e7bbaac13 /include/items.php | |
parent | abe6a3286e80359d03a9f45ee86657bf84a47ac2 (diff) | |
download | volse-hubzilla-465ba71b584ad596729c23717226a9bdeb896553.tar.gz volse-hubzilla-465ba71b584ad596729c23717226a9bdeb896553.tar.bz2 volse-hubzilla-465ba71b584ad596729c23717226a9bdeb896553.zip |
pubsubhubbub - discovery and notifier
Diffstat (limited to 'include/items.php')
-rw-r--r-- | include/items.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php index 839baf4b6..688ef244a 100644 --- a/include/items.php +++ b/include/items.php @@ -123,11 +123,16 @@ function get_feed_for(&$a, $dfrn_id, $owner_id, $last_update, $direction = 0) { $atom = ''; + $hub = get_config('system','huburl'); + + $hubxml = ((strlen($hub)) ? '<link rel="hub" href="' . xmlify($hub) . '" />' . "\n" : ''); + $atom .= replace_macros($feed_template, array( '$feed_id' => xmlify($a->get_baseurl() . '/profile/' . $owner_nick), '$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']), |