diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-06-10 18:56:35 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-06-10 18:56:35 +0400 |
commit | f8ea52c3a0fe29daf76fbd7a0e65399c09c95f5a (patch) | |
tree | 6f1df03a8ca996cce004a28c57f6e1e88ed72f7b /app | |
parent | a7be3dfa30a452b307d1fdc0b4157ecbe908da8d (diff) |
Remove thread vars usage from API notes and mr's
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app')
-rw-r--r-- | app/observers/note_observer.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/observers/note_observer.rb b/app/observers/note_observer.rb index 337bb1dc5ae..9bb1f0f7b98 100644 --- a/app/observers/note_observer.rb +++ b/app/observers/note_observer.rb @@ -5,7 +5,7 @@ class NoteObserver < BaseObserver # Skip system notes, like status changes and cross-references. # Skip wall notes to prevent spamming of dashboard if note.noteable_type.present? && !note.system - event_service.leave_note(note, current_user) + event_service.leave_note(note, note.author) end unless note.system? @@ -18,6 +18,6 @@ class NoteObserver < BaseObserver end def after_update(note) - note.notice_added_references(note.project, current_user) + note.notice_added_references(note.project, note.author) end end |