Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 208838a

Browse files
committed
Fix load users' feed
1 parent 29aad73 commit 208838a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/src/plugins/feed.sql/class.AJXP_SqlFeedStore.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,13 @@ public function loadEvents($filterByRepositories, $filterByPath, $userGroup, $of
142142
if($filterByPath[strlen($filterByPath)-1]=='/'){
143143
//$groupByClause = " GROUP BY [index_path] ";
144144
}
145-
$index_path = "%://".$filterByRepositories[0].$filterByPath."%";
145+
$index_path[] = array("[index_path] LIKE %s","%://".$filterByRepositories[0].$filterByPath."%");
146+
$index_path[] = array("[index_path] LIKE %s","%://".$userId."@".$filterByRepositories[0].$filterByPath."%");
146147
$res = dibi::query("SELECT * FROM [ajxp_feed] WHERE [etype] = %s
147148
AND
148149
( %or )
149150
AND
150-
([index_path] LIKE %s)
151+
( %or )
151152
AND (
152153
[repository_scope] = 'ALL'
153154
OR ([repository_scope] = 'USER' AND [user_id] = %s )

0 commit comments

Comments
 (0)