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

parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment