From 4b154de4526d25fe810f1f371d9707789994e858 Mon Sep 17 00:00:00 2001 From: Alessandro Cosentino Date: Sat, 7 Jul 2012 21:52:41 -0400 Subject: mark as read item working now --- lib/item.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/item.php') diff --git a/lib/item.php b/lib/item.php index ff3655e04..64ae368c3 100644 --- a/lib/item.php +++ b/lib/item.php @@ -36,7 +36,12 @@ class OC_News_Item { $this->url = $url; $this->guid = $guid; $this->body = $body; - $this->status |= StatusFlag::Unread; + if ($id == null) { + $this->status |= StatusFlag::Unread; + } + else { + $this->id = $id; + } } public function getGuid(){ -- cgit v1.2.3