From b38a7890056591f8ac4075427ad39468d5318462 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 13 Jan 2016 19:23:34 +0100 Subject: [PATCH] HubSub didn't save sub start and end datetimes --- plugins/OStatus/classes/HubSub.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); } /** -- 2.39.5