From a5fd4fde25cd6e94a3140d5de4d01832678495fa Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 13 Jan 2016 19:24:07 +0100 Subject: [PATCH] Request a month long sub lease by default --- plugins/OStatus/classes/FeedSub.php | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/OStatus/classes/FeedSub.php b/plugins/OStatus/classes/FeedSub.php index 0c7129e885..ad2c4ed684 100644 --- a/plugins/OStatus/classes/FeedSub.php +++ b/plugins/OStatus/classes/FeedSub.php @@ -335,6 +335,7 @@ class FeedSub extends Managed_DataObject 'hub.verify' => 'async', // TODO: deprecated, remove when noone uses PuSH <0.4 (only 'async' method used there) 'hub.verify_token' => 'Deprecated-since-PuSH-0.4', // TODO: rm! + 'hub.lease_seconds' => 2592000, // 3600*24*30, request approximately month long lease (may be changed by hub) 'hub.secret' => $this->secret, 'hub.topic' => $this->getUri()); $client = new HTTPClient(); -- 2.39.5