mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 22:25:04 -04:00
limit distant search results to non circle-restricted groups
This commit is contained in:
parent
fb89dbbfb2
commit
217aa119ff
1 changed files with 7 additions and 1 deletions
|
@ -5424,6 +5424,12 @@ bool RsGxsNetService::search( const std::string& substring,
|
|||
group_infos.clear();
|
||||
|
||||
#ifdef RS_DEEP_CHANNEL_INDEX
|
||||
|
||||
#warning TODO: filter deep index search result to non circle-restricted groups.
|
||||
// /!\
|
||||
// /!\ These results should be filtered to only return results coming from a non restricted group!
|
||||
// /!\
|
||||
|
||||
std::vector<DeepChannelsSearchResult> results;
|
||||
DeepChannelsIndex::search(substring, results);
|
||||
|
||||
|
@ -5470,7 +5476,7 @@ bool RsGxsNetService::search( const std::string& substring,
|
|||
|
||||
RsGroupNetworkStats stats;
|
||||
for(auto it(grpMetaMap.begin());it!=grpMetaMap.end();++it)
|
||||
if(termSearch(it->second->mGroupName,substring))
|
||||
if(it->second->mCircleType==GXS_CIRCLE_TYPE_PUBLIC && termSearch(it->second->mGroupName,substring))
|
||||
{
|
||||
getGroupNetworkStats(it->first,stats);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue