forked from GNUsocial/gnu-social
Change mentions of PuSH to WebSub
WebSub is probably finalised before we make a release anyway. Here is the official spec: https://www.w3.org/TR/websub/ Mostly just comments that have been changed. Some references to PuSH <0.4 are left because they actually refer to PuSH 0.3 and that's not WebSub... The only actual code change that might affect anything is FeedSub->isPuSH() but the only official plugin using that call was FeedPoller anyway...
This commit is contained in:
@@ -22,7 +22,7 @@ if (!defined('STATUSNET')) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Send a raw PuSH atom update from our internal hub.
|
||||
* Send a raw WebSub push atom update from our internal hub.
|
||||
* @package Hub
|
||||
* @author Brion Vibber <brion@status.net>
|
||||
*/
|
||||
@@ -45,10 +45,10 @@ class HubOutQueueHandler extends QueueHandler
|
||||
try {
|
||||
$sub->push($atom);
|
||||
} catch (AlreadyFulfilledException $e) {
|
||||
common_log(LOG_INFO, "Failed PuSH to $sub->callback for $sub->topic (".get_class($e)."): " . $e->getMessage());
|
||||
common_log(LOG_INFO, "Failed WebSub push to $sub->callback for $sub->topic (".get_class($e)."): " . $e->getMessage());
|
||||
} catch (Exception $e) {
|
||||
$retries--;
|
||||
$msg = "Failed PuSH to $sub->callback for $sub->topic (".get_class($e)."): " . $e->getMessage();
|
||||
$msg = "Failed WebSub push to $sub->callback for $sub->topic (".get_class($e)."): " . $e->getMessage();
|
||||
if ($retries > 0) {
|
||||
common_log(LOG_INFO, "$msg; scheduling for $retries more tries");
|
||||
|
||||
|
Reference in New Issue
Block a user