From 377947c57f962f8cf6a6b6c2e78546cf1814f2dc Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 13 Jan 2016 19:55:17 +0100 Subject: [PATCH] s/getLease/getLeaseTime/ just to be a bit more clear --- plugins/OStatus/classes/HubSub.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/OStatus/classes/HubSub.php b/plugins/OStatus/classes/HubSub.php index 2e3fde6243..fe91167765 100644 --- a/plugins/OStatus/classes/HubSub.php +++ b/plugins/OStatus/classes/HubSub.php @@ -99,7 +99,7 @@ class HubSub extends Managed_DataObject $this->sub_end = common_sql_date(time() + $length); } - function getLease() + function getLeaseTime() { if (empty($this->sub_start) || empty($this->sub_end)) { return null; @@ -159,7 +159,7 @@ class HubSub extends Managed_DataObject 'hub.topic' => $this->getTopic(), 'hub.challenge' => $challenge); if ($mode == 'subscribe') { - $params['hub.lease_seconds'] = $this->getLease(); + $params['hub.lease_seconds'] = $this->getLeaseTime(); } if ($token !== null) { // TODO: deprecated in PuSH 0.4 $params['hub.verify_token'] = $token; // let's put it in there if remote uses PuSH <0.4 -- 2.39.5