From 631a1e2baf5e8332bd3034de0022669eca0636fd Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 13 Nov 2014 14:14:38 +0100 Subject: dont set guidHash when setting guid to avoid overwriting different guid hashes that come from the db --- db/item.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'db') diff --git a/db/item.php b/db/item.php index 452075d05..d5fa83286 100644 --- a/db/item.php +++ b/db/item.php @@ -162,6 +162,7 @@ class Item extends Entity implements IAPI, \JsonSerializable { public static function fromImport($import) { $item = new static(); $item->setGuid($import['guid']); + $item->setGuidHash($import['guid']); $item->setUrl($import['url']); $item->setTitle($import['title']); $item->setAuthor($import['author']); @@ -202,14 +203,6 @@ class Item extends Entity implements IAPI, \JsonSerializable { } - public function setGuid($guid) { - parent::setGuid($guid); - - // not needed to hash again because picofeed hashes the id anyways - $this->setGuidHash($guid); - } - - public function setBody($body) { // FIXME: this should not happen if the target="_blank" is already // on the link -- cgit v1.2.3