summaryrefslogtreecommitdiffstats
path: root/lib/Db/Item.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Db/Item.php')
-rw-r--r--lib/Db/Item.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/Db/Item.php b/lib/Db/Item.php
index 86508ea72..730e387d1 100644
--- a/lib/Db/Item.php
+++ b/lib/Db/Item.php
@@ -96,6 +96,31 @@ class Item extends Entity implements IAPI, \JsonSerializable
$this->addType('sharedBy', 'string');
}
+ public function __clone()
+ {
+ $this->resetUpdatedFields();
+ $this->markFieldUpdated('contentHash');
+ $this->markFieldUpdated('guidHash');
+ $this->markFieldUpdated('guid');
+ $this->markFieldUpdated('url');
+ $this->markFieldUpdated('title');
+ $this->markFieldUpdated('author');
+ $this->markFieldUpdated('pubDate');
+ $this->markFieldUpdated('body');
+ $this->markFieldUpdated('enclosureMime');
+ $this->markFieldUpdated('enclosureLink');
+ $this->markFieldUpdated('mediaThumbnail');
+ $this->markFieldUpdated('mediaDescription');
+ $this->markFieldUpdated('feedId');
+ $this->markFieldUpdated('lastModified');
+ $this->markFieldUpdated('searchIndex');
+ $this->markFieldUpdated('rtl');
+ $this->markFieldUpdated('fingerprint');
+ $this->markFieldUpdated('unread');
+ $this->markFieldUpdated('starred');
+ $this->markFieldUpdated('sharedBy');
+ }
+
/**
* @return int
*/