diff options
author | Marco Nassabain <marco.nassabain@hotmail.com> | 2021-02-07 20:59:29 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-04-08 22:31:21 +0200 |
commit | ec5ae1a90a97816ac295bdf5f30db4ffe57b239d (patch) | |
tree | c982f936cce73c508f9ba3460179f300b9b39179 /lib/Db | |
parent | 15dedf0ceb3ba48f4e4bd40931330bd3158adcff (diff) |
🩹 ItemMapper->deleteUser: include shared items
- deletes items shared with a user
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'lib/Db')
-rw-r--r-- | lib/Db/ItemMapper.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Db/ItemMapper.php b/lib/Db/ItemMapper.php index 7c3cb20b5..01365d866 100644 --- a/lib/Db/ItemMapper.php +++ b/lib/Db/ItemMapper.php @@ -432,9 +432,9 @@ class ItemMapper extends NewsMapper 'WHERE `feed_id` IN (' . 'SELECT `feeds`.`id` FROM `*PREFIX*news_feeds` `feeds` ' . 'WHERE `feeds`.`user_id` = ?' . - ')'; + ') OR `shared_with` = ?'; - $this->execute($sql, [$userId]); + $this->execute($sql, [$userId, $userId]); } |