summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Db/ItemMapper.php4
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]);
}