Browse Source

Zend_Feed_Pubsubhubbub: Added incremented expiration_time on all subscription writes (new,confirmed,refreshed)

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@20197 44c647ce-9c0f-0410-b52a-842ac1e357ba
padraic 16 years ago
parent
commit
13dbf19aa9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      library/Zend/Feed/Pubsubhubbub/Model/Subscription.php

+ 2 - 0
library/Zend/Feed/Pubsubhubbub/Model/Subscription.php

@@ -56,6 +56,8 @@ class Zend_Feed_Pubsubhubbub_Model_Subscription
             $data['created_time'] = $result->current()->created_time;
             $now = new Zend_Date;
             $data['last_modified'] = $now->get('yyyy-MM-dd HH:mm:ss');
+            $data['expiration_time'] = $now->add($data['lease_seconds'], Zend_Date::SECOND)
+                ->get('yyyy-MM-dd HH:mm:ss');
             $this->_db->update(
                 $data,
                 $this->_db->getAdapter()->quoteInto('id = ?', $data['id'])