diff options
author | Jimmy Huynh <jimmy.huynh@etu.unistra.fr> | 2021-01-26 18:14:05 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-04-08 23:17:31 +0200 |
commit | 4a9a4cf0d246455ada84f6905d52a3eaccb8dc83 (patch) | |
tree | cf6101b9a8c447a422eb781700cd98512361cdc4 /lib/Db | |
parent | e5ccff97a68877fb03641344477dd212e702360f (diff) |
(+) Adding sharing_user names to EVERY articles + pre-condition if sharedArticle: no title feed (e.g.: from wikiRSS...)
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'lib/Db')
-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; |