summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
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