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:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* GNU social feed polling plugin, to avoid using external PuSH hubs
|
||||
* GNU social feed polling plugin, to avoid using external WebSub hubs
|
||||
*
|
||||
* @category Feed
|
||||
* @package GNUsocial
|
||||
@@ -30,7 +30,7 @@ class FeedPollerPlugin extends Plugin {
|
||||
|
||||
public function onFeedSubscribe(FeedSub $feedsub)
|
||||
{
|
||||
if (!$feedsub->isPuSH()) {
|
||||
if (!$feedsub->isWebSub()) {
|
||||
FeedPoll::setupFeedSub($feedsub, $this->interval*60);
|
||||
return false; // We're polling this feed, so stop processing FeedSubscribe
|
||||
}
|
||||
@@ -39,7 +39,7 @@ class FeedPollerPlugin extends Plugin {
|
||||
|
||||
public function onFeedUnsubscribe(FeedSub $feedsub)
|
||||
{
|
||||
if (!$feedsub->isPuSH()) {
|
||||
if (!$feedsub->isWebSub()) {
|
||||
// removes sub_state setting and such
|
||||
$feedsub->confirmUnsubscribe();
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user