Add notifications to user when a follow profile posted
This commit is contained in:
@@ -163,9 +163,12 @@ DB.getDB.then((DB) => {
|
||||
post = postObj.toObj();
|
||||
post._id = dbr.insertedId;
|
||||
if ((post.toProfile && post.toProfile != post.profileid) || post.nonOrganicType == 'News') {
|
||||
Notifications.youGotANewPost(post);
|
||||
await Notifications.youGotANewPost(post);
|
||||
}
|
||||
await Notifications.yourGroupMakeANewPost(post);
|
||||
if(!isGroupPrivate){
|
||||
await Notifications.yourSubscriptionProfileHasNewPost(post);
|
||||
}
|
||||
Notifications.yourGroupGotANewPost(post);
|
||||
return res.json({
|
||||
status: "ok",
|
||||
...post
|
||||
|
||||
Reference in New Issue
Block a user