瀏覽代碼

Merge pull request #1630 from ehuss/mentions-author-at

Fix mentions elided for the author.
Joshua Nelson 2 年之前
父節點
當前提交
5da1075fb1
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/handlers/mentions.rs

+ 3 - 1
src/handlers/mentions.rs

@@ -61,7 +61,9 @@ pub(super) async fn parse_input(
             .filter(|(path, MentionsPathConfig { cc, .. })| {
                 let path = Path::new(path);
                 file_paths.iter().any(|p| p.starts_with(path))
-                    && !cc.iter().any(|r| r == &event.issue.user.login)
+                    && !cc
+                        .iter()
+                        .any(|r| r.trim_start_matches('@') == &event.issue.user.login)
             })
             .map(|(key, _mention)| key.to_string())
             .collect();