change popular groups to limit 5

This commit is contained in:
aeroreyna
2022-02-16 22:40:49 -08:00
parent 58fda40c20
commit f0e1c6b5a9

View File

@@ -26,7 +26,7 @@ DB.getDB.then((DB) => {
content += "@p:" + p._id + "\n";
});
let popularProfilesPost = new Post({profileid: 1, content, nonOrganicType: "PopularUsers"});
const popularGroups = await DB.getPopularGroups(15);
const popularGroups = await DB.getPopularGroups(5);
content = "Popular users to follow:\n";
popularGroups.forEach((p)=>{
content += "@p:" + p._id + "\n";