diff options
author | Marco Nassabain <marco.nassabain@hotmail.com> | 2021-02-07 20:13:51 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-04-08 22:31:21 +0200 |
commit | c6407404446532d2929864533a75bf08d844e9cc (patch) | |
tree | 4089371a977e6efe0f3e79749b5f5023b57ba3e5 /lib/Db | |
parent | bf92ace3e858ae209b75d3c75810d80361be33a0 (diff) |
🐛 Fix readAll: cannot read items we shared
- A shared item is still in our feed, but it's not ours to read
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'lib/Db')
-rw-r--r-- | lib/Db/ItemMapper.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Db/ItemMapper.php b/lib/Db/ItemMapper.php index 6a6f44725..0ff2ca036 100644 --- a/lib/Db/ItemMapper.php +++ b/lib/Db/ItemMapper.php @@ -151,6 +151,7 @@ class ItemMapper extends NewsMapper 'SELECT `id` FROM `*PREFIX*news_feeds` ' . 'WHERE `user_id` = ? ' . ') ' . + 'AND `shared_by` = \'\' ' . 'AND `id` <= ?'; $params = [false, $time, $userId, $highestItemId]; $this->execute($sql, $params); |