]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
HubSub didn't save sub start and end datetimes
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 13 Jan 2016 18:23:34 +0000 (19:23 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 13 Jan 2016 18:23:34 +0000 (19:23 +0100)
plugins/OStatus/classes/HubSub.php

index 4d63faac23a5b883c97d35df7b5f81ef975d701a..c9c1bf54e74f6454015d12d1ce7104f6d59683fa 100644 (file)
@@ -81,6 +81,7 @@ class HubSub extends Managed_DataObject
      */
     function setLease($length)
     {
+        common_debug('PuSH hub got requested lease_seconds=='._ve($length));
         assert(is_int($length));
 
         $min = 86400;
@@ -95,9 +96,10 @@ class HubSub extends Managed_DataObject
             $length = $max;
         }
 
+        common_debug('PuSH hub after sanitation: lease_seconds=='._ve($length));
         $this->lease = $length;
-        $this->start_sub = common_sql_now();
-        $this->end_sub = common_sql_date(time() + $length);
+        $this->sub_start = common_sql_now();
+        $this->sub_end = common_sql_date(time() + $length);
     }
 
     /**