summaryrefslogtreecommitdiff
path: root/app/services/notes
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/notes')
-rw-r--r--app/services/notes/post_process_service.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/services/notes/post_process_service.rb b/app/services/notes/post_process_service.rb
index f0cab2ade6d..199b8028dbc 100644
--- a/app/services/notes/post_process_service.rb
+++ b/app/services/notes/post_process_service.rb
@@ -11,7 +11,7 @@ module Notes
unless @note.system?
EventCreateService.new.leave_note(@note, @note.author)
- return unless @note.for_project_noteable?
+ return if @note.for_personal_snippet?
@note.create_cross_references!
execute_note_hooks
@@ -23,6 +23,8 @@ module Notes
end
def execute_note_hooks
+ return unless @note.project
+
note_data = hook_data
hooks_scope = @note.confidential? ? :confidential_note_hooks : :note_hooks