From 4a9a4cf0d246455ada84f6905d52a3eaccb8dc83 Mon Sep 17 00:00:00 2001 From: Jimmy Huynh Date: Tue, 26 Jan 2021 18:14:05 +0100 Subject: (+) Adding sharing_user names to EVERY articles + pre-condition if sharedArticle: no title feed (e.g.: from wikiRSS...) Signed-off-by: Marco Nassabain --- lib/Db/Item.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') diff --git a/lib/Db/Item.php b/lib/Db/Item.php index 2ead77066..285bc64bc 100644 --- a/lib/Db/Item.php +++ b/lib/Db/Item.php @@ -311,6 +311,11 @@ class Item extends Entity implements IAPI, \JsonSerializable return $this->starred; } + public function isShared(): bool + { + return $this->getSharedBy == '' && $this->getSharedWith == ''; + } + public function isUnread(): bool { return $this->unread; -- cgit v1.2.3