mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-05 21:29:23 -04:00
fixed to display all available Blogs
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3157 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
766fa33535
commit
73ae89acad
1 changed files with 6 additions and 29 deletions
|
@ -295,37 +295,14 @@ void BlogsDialog::updateBlogList()
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t i = 0;
|
uint32_t i = 0;
|
||||||
uint32_t popLimit = 0;
|
|
||||||
std::multimap<uint32_t, std::string>::reverse_iterator rit;
|
std::multimap<uint32_t, std::string>::reverse_iterator rit;
|
||||||
for(rit = popMap.rbegin(); ((rit != popMap.rend()) && (i < popCount)); rit++, i++)
|
for(rit = popMap.rbegin(); rit != popMap.rend(); rit++)
|
||||||
{
|
{
|
||||||
|
if(i < popCount){
|
||||||
popIds.push_back(rit->second);
|
popIds.push_back(rit->second);
|
||||||
}
|
i++;
|
||||||
|
}else{
|
||||||
if (rit != popMap.rend())
|
otherIds.push_back(rit->second);
|
||||||
{
|
|
||||||
popLimit = rit->first;
|
|
||||||
}
|
|
||||||
|
|
||||||
for(it = channelList.begin(); it != channelList.end(); it++)
|
|
||||||
{
|
|
||||||
/* ignore the ones we've done already */
|
|
||||||
uint32_t flags = it->blogFlags;
|
|
||||||
|
|
||||||
if (flags & RS_DISTRIB_ADMIN)
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
else if (flags & RS_DISTRIB_SUBSCRIBED)
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (it->pop < popLimit)
|
|
||||||
{
|
|
||||||
otherIds.push_back(it->blogId);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue