summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-11-13 14:14:38 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2014-11-13 14:14:38 +0100
commit631a1e2baf5e8332bd3034de0022669eca0636fd (patch)
treecb34cd1183d25e4d40f399879381d0c08a2c376e /db
parentb793f892463a691a4b25bc59add168669720850a (diff)
dont set guidHash when setting guid to avoid overwriting different guid hashes that come from the db
Diffstat (limited to 'db')
-rw-r--r--db/item.php9
1 files changed, 1 insertions, 8 deletions
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