bookmarks in progress missing notifications
This commit is contained in:
@@ -25,7 +25,11 @@ const Notifications = {
|
||||
async youGotANewPostComment(postId, whoPostedId, message){
|
||||
const DB = await DBGetter.getDB;
|
||||
const post = await DB.getPost(postId)
|
||||
if(post.bookmarks){
|
||||
//send notification to boorkmaked profiles
|
||||
}
|
||||
const profile = await DB.getProfileCache(post.profileid);
|
||||
if(profile.isCourse) return 0; //Course owners do not need to receive notifs
|
||||
const user = await DB.getUserById(profile.userid);
|
||||
const senderProfile = await DB.getProfileCache(whoPostedId);
|
||||
let subject = senderProfile.profile.firstName + " comment on your post";
|
||||
|
||||
Reference in New Issue
Block a user