aboutsummaryrefslogtreecommitdiffstats
path: root/include/notifier.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-02-07 17:06:04 -0800
committerFriendika <info@friendika.com>2011-02-07 17:06:04 -0800
commit18c5d1ff90dd364328032b3f0092ac5176ebc4c5 (patch)
treeb514163221c58438f1acbc930f75926fcbb68ff2 /include/notifier.php
parent7dd56fa14c784a95695aece6dfe5cac145452ffe (diff)
downloadvolse-hubzilla-18c5d1ff90dd364328032b3f0092ac5176ebc4c5.tar.gz
volse-hubzilla-18c5d1ff90dd364328032b3f0092ac5176ebc4c5.tar.bz2
volse-hubzilla-18c5d1ff90dd364328032b3f0092ac5176ebc4c5.zip
feed cleanup
Diffstat (limited to 'include/notifier.php')
-rw-r--r--include/notifier.php18
1 files changed, 4 insertions, 14 deletions
diff --git a/include/notifier.php b/include/notifier.php
index ca0aa0df3..b6c4ca571 100644
--- a/include/notifier.php
+++ b/include/notifier.php
@@ -179,23 +179,13 @@ function notifier_run($argv, $argc){
$mail_template = load_view_file('view/atom_mail.tpl');
$atom = '';
- $hubxml = '';
$slaps = array();
- if(strlen($hub)) {
- $hubs = explode(',', $hub);
- if(count($hubs)) {
- foreach($hubs as $h) {
- $h = trim($h);
- if(! strlen($h))
- continue;
- $hubxml .= '<link rel="hub" href="' . xmlify($h) . '" />' . "\n" ;
- }
- }
- }
+ $hubxml = feed_hublinks();
$birthday = feed_birthday($owner['uid'],$owner['timezone']);
- if($birthday)
+
+ if(strlen($birthday))
$birthday = '<dfrn:birthday>' . xmlify($birthday) . '</dfrn:birthday>';
$atom .= replace_macros($feed_template, array(
@@ -398,7 +388,7 @@ function notifier_run($argv, $argc){
*
*/
- $max_allowed = ((get_config('system','maxpubdeliver') === false) ? 150 : intval(get_config('system','maxdeliver')));
+ $max_allowed = ((get_config('system','maxpubdeliver') === false) ? 150 : intval(get_config('system','maxpubdeliver')));
/**
*