]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Request a month long sub lease by default
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 13 Jan 2016 18:24:07 +0000 (19:24 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 13 Jan 2016 18:24:07 +0000 (19:24 +0100)
plugins/OStatus/classes/FeedSub.php

index 0c7129e885a5983671dc7527110fe12f7c98d082..ad2c4ed68434f0a504d81bae056305ec83c31062 100644 (file)
@@ -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();