]> Untitled Git - lemmy.git/commitdiff
Adding some comments to notifs.
authorDessalines <tyhou13@gmx.com>
Thu, 18 Mar 2021 14:59:17 +0000 (10:59 -0400)
committerDessalines <tyhou13@gmx.com>
Thu, 18 Mar 2021 14:59:17 +0000 (10:59 -0400)
crates/api_structs/src/lib.rs

index ea3a05566937d68df780d866f85cdc34f2981a19..462f521b4c6d56b67b7064352a31e9ad25c9ac83 100644 (file)
@@ -116,7 +116,9 @@ fn do_send_local_notifs(
   match comment.parent_id {
     Some(parent_id) => {
       if let Ok(parent_comment) = Comment::read(&conn, parent_id) {
+        // Don't send a notif to yourself
         if parent_comment.creator_id != person.id {
+          // Get the parent commenter local_user
           if let Ok(parent_user_view) = LocalUserView::read_person(&conn, parent_comment.creator_id)
           {
             recipient_ids.push(parent_user_view.local_user.id);