]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Minor PuSH comment and debug stuff
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 13 Jan 2016 18:24:38 +0000 (19:24 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 13 Jan 2016 18:25:39 +0000 (19:25 +0100)
plugins/OStatus/actions/pushcallback.php
plugins/OStatus/actions/pushhub.php
plugins/OStatus/classes/HubSub.php

index 95514112ca63e08c7518175ca82e1502d9910f3e..317398243d7ab0d17aeda546b5063167fb892dcd 100644 (file)
@@ -82,7 +82,7 @@ class PushCallbackAction extends Action
         $mode = $this->arg('hub_mode');
         $topic = $this->arg('hub_topic');
         $challenge = $this->arg('hub_challenge');
-        $lease_seconds = $this->arg('hub_lease_seconds');   // Must be >0 for PuSH 0.4!
+        $lease_seconds = $this->arg('hub_lease_seconds');   // Must be >0 for PuSH 0.4! And only checked on mode='subscribe' of course
         common_log(LOG_INFO, __METHOD__ . ": sub verification mode: $mode topic: $topic challenge: $challenge lease_seconds: $lease_seconds");
 
         if ($mode != 'subscribe' && $mode != 'unsubscribe') {
index 8f54a1497b15995fb9a2f200e0c03ecdd6777ef0..be8076b75e3c4cb0b71b33bf6920eed3e86fa7bb 100644 (file)
@@ -118,7 +118,6 @@ class PushHubAction extends Action
                 $sub->secret = $secret;
             }
             if ($lease) {
-                common_debug('PuSH hub setting dataobject lease to:'._ve(intval($lease)));
                 $sub->setLease(intval($lease));
             }
         }
index c9c1bf54e74f6454015d12d1ce7104f6d59683fa..54949c611317b2d3fb1bbedd9aae0e2c4559c75e 100644 (file)
@@ -84,7 +84,7 @@ class HubSub extends Managed_DataObject
         common_debug('PuSH hub got requested lease_seconds=='._ve($length));
         assert(is_int($length));
 
-        $min = 86400;
+        $min = 86400;   // 3600*24 (one day)
         $max = 86400 * 30;
 
         if ($length == 0) {