]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/FeedPoller/FeedPollerPlugin.php
Groups can now be server-specific with !osm@gnusocial.de vs. !osm@sn.jonkman.ca
[quix0rs-gnu-social.git] / plugins / FeedPoller / FeedPollerPlugin.php
index e272c0b7052bde9226566adae38bb718a9378bc7..2326cd2f1b4d6bd1225cf77f832891e2ce307157 100644 (file)
@@ -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;