浏览代码

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 年之前
父节点
当前提交
13dbf19aa9
共有 1 个文件被更改,包括 2 次插入0 次删除
  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'])