Use `Note#for_project_snippet?` to skip notes on project snippet

上级 231d4fb9
......@@ -123,7 +123,7 @@ class TodoService
def handle_note(note, author)
# Skip system notes, and notes on project snippet
return if note.system? || ['Snippet'].include?(note.noteable_type)
return if note.system? || note.for_project_snippet?
project = note.project
target = note.noteable
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册