send invitations emails
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user