send invitations emails

This commit is contained in:
Adolfo Reyna
2021-10-10 10:50:42 -07:00
parent c64e2361fc
commit dce98a30c6
4 changed files with 27 additions and 4 deletions

View File

@@ -126,12 +126,10 @@ postDB = (DB)=>{
profile.following.forEach(element => {
following[element] = 1;
});
console.log(following)
for(i in posts){
let p = posts[i];
let isPostingAPrivateGroup = await DB.isGroupPrivate(p.profileid);
let isPostingToAPrivateGroup = p.toProfile ? await DB.isGroupPrivate(p.toProfile) : false;
console.log(following[p.profileid], following[p.toProfile + ""], p.toProfile)
if(!isPostingAPrivateGroup && !isPostingToAPrivateGroup){
filteredPosts.push(p);
continue;