Notifs for groups posting in feed

This commit is contained in:
Adolfo Reyna
2023-02-07 15:51:37 -05:00
parent af059b6fc6
commit 7ff9223a5c
2 changed files with 15 additions and 0 deletions

View File

@@ -165,6 +165,7 @@ DB.getDB.then((DB) => {
if ((post.toProfile && post.toProfile != post.profileid) || post.nonOrganicType == 'News') {
Notifications.youGotANewPost(post);
}
Notifications.yourGroupGotANewPost(post);
return res.json({
status: "ok",
...post