mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-04-15 13:03:08 -04:00
limit distant search results to non circle-restricted groups
This commit is contained in:
parent
fb89dbbfb2
commit
217aa119ff
@ -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…
x
Reference in New Issue
Block a user