From: Mikael Nordfeldth Date: Wed, 13 Jan 2016 18:23:34 +0000 (+0100) Subject: HubSub didn't save sub start and end datetimes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b38a7890056591f8ac4075427ad39468d5318462;p=quix0rs-gnu-social.git HubSub didn't save sub start and end datetimes --- diff --git a/plugins/OStatus/classes/HubSub.php b/plugins/OStatus/classes/HubSub.php index 4d63faac23..c9c1bf54e7 100644 --- a/plugins/OStatus/classes/HubSub.php +++ b/plugins/OStatus/classes/HubSub.php @@ -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); } /**