diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-06-22 15:02:33 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-07-18 14:13:38 +0200 |
commit | 9807ee7d6b003b9dbef5eb4c78136f0e72d753ed (patch) | |
tree | e89178f33162edbf0a1bb2ef5e1c6f55057434b2 /businesslayer/feedbusinesslayer.php | |
parent | 60f62a65069b63ed785756cb21a7a094cf5dd663 (diff) |
use current date when feed does not provide pubdates, disable article updates
Diffstat (limited to 'businesslayer/feedbusinesslayer.php')
-rw-r--r-- | businesslayer/feedbusinesslayer.php | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/businesslayer/feedbusinesslayer.php b/businesslayer/feedbusinesslayer.php index 05448d7f6..2d61dfe61 100644 --- a/businesslayer/feedbusinesslayer.php +++ b/businesslayer/feedbusinesslayer.php @@ -171,24 +171,7 @@ class FeedBusinessLayer extends BusinessLayer { $item->setFeedId($existingFeed->getId()); try { - $existing = $this->itemMapper->findByGuidHash( - $item->getGuidHash(), $feedId, $userId); - - // in case of an update the existing item has to be deleted - // if the pub_date changed because we sort by id on the - // client side since this is the only reliable way to do it - // to not get weird behaviour - if((int)$existing->getPubDate() !== (int)$item->getPubDate()){ - - // because the item is being replaced we need to keep - // status flags but we want the new entry to be unread - $item->setStatus($existing->getStatus()); - $item->setUnread(); - - $this->itemMapper->delete($existing); - $this->itemMapper->insert($item); - } - + $this->itemMapper->findByGuidHash($item->getGuidHash(), $feedId, $userId); } catch(DoesNotExistException $ex){ $this->itemMapper->insert($item); } |