summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarco Nassabain <marco.nassabain@hotmail.com>2021-03-05 23:10:17 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 22:31:21 +0200
commitb0c42e4cd7d51148a55fbff9113688b97b38c965 (patch)
tree432e9fcd828f0c23eedf7c079cb055e01902b124 /lib
parent2cba1e4146221f28ac195f62fbbb6cd9dbb555fd (diff)
♻️ Item: Remove isShared
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Db/Item.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/Db/Item.php b/lib/Db/Item.php
index 411428e96..7bb9147b5 100644
--- a/lib/Db/Item.php
+++ b/lib/Db/Item.php
@@ -311,11 +311,6 @@ class Item extends Entity implements IAPI, \JsonSerializable
return $this->starred;
}
- public function isShared(): bool
- {
- return !is_null($this->getSharedBy());
- }
-
public function isUnread(): bool
{
return $this->unread;
@@ -369,8 +364,7 @@ class Item extends Entity implements IAPI, \JsonSerializable
'intro' => $this->getIntro(),
'fingerprint' => $this->getFingerprint(),
'categories' => $this->getCategories(),
- 'sharedBy' => $this->getSharedBy(),
- 'isShared' => $this->isShared()
+ 'sharedBy' => $this->getSharedBy()
];
}