diff options
Diffstat (limited to 'lib/Db/Item.php')
-rw-r--r-- | lib/Db/Item.php | 5 |
1 files changed, 5 insertions, 0 deletions
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; |