From c6407404446532d2929864533a75bf08d844e9cc Mon Sep 17 00:00:00 2001 From: Marco Nassabain Date: Sun, 7 Feb 2021 20:13:51 +0100 Subject: =?UTF-8?q?=F0=9F=90=9B=20Fix=20readAll:=20cannot=20read=20items?= =?UTF-8?q?=20we=20shared=20-=20A=20shared=20item=20is=20still=20in=20our?= =?UTF-8?q?=20feed,=20but=20it's=20not=20ours=20to=20read?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marco Nassabain --- lib/Db/ItemMapper.php | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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); -- cgit v1.2.3