forked from GNUsocial/gnu-social
Merge branch 'testing' into 0.9.x
This commit is contained in:
commit
b157fcbba3
@ -211,13 +211,20 @@ class PubSubHubBubPlugin extends Plugin
|
|||||||
'format' => 'atom'));
|
'format' => 'atom'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$feeds = array_unique($feeds);
|
||||||
|
|
||||||
foreach (array_unique($feeds) as $feed) {
|
ob_start();
|
||||||
if (!$publisher->publish_update($feed)) {
|
$ok = $publisher->publish_update($feeds);
|
||||||
common_log_line(LOG_WARNING,
|
$push_last_response = ob_get_clean();
|
||||||
$feed.' was not published to hub at '.
|
|
||||||
$this->hub.':'.$publisher->last_response());
|
if (!$ok) {
|
||||||
}
|
common_log(LOG_WARNING,
|
||||||
|
'Failure publishing ' . count($feeds) . ' feeds to hub at '.
|
||||||
|
$this->hub.': '.$push_last_response);
|
||||||
|
} else {
|
||||||
|
common_log(LOG_INFO,
|
||||||
|
'Published ' . count($feeds) . ' feeds to hub at '.
|
||||||
|
$this->hub.': '.$push_last_response);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user