From ddaa1f1fe6bfaeac4ddc9ef6301163e2fe69c1e7 Mon Sep 17 00:00:00 2001
From: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Date: Wed, 14 Aug 2013 14:20:16 +0300
Subject: [PATCH] Fixed bug with invalid event author for MR

---
 app/observers/merge_request_observer.rb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/app/observers/merge_request_observer.rb b/app/observers/merge_request_observer.rb
index 436645a376..6843f33da7 100644
--- a/app/observers/merge_request_observer.rb
+++ b/app/observers/merge_request_observer.rb
@@ -46,8 +46,7 @@ class MergeRequestObserver < ActivityObserver
       target_id: record.id,
       target_type: record.class.name,
       action: status,
-      author_id: record.author_id
+      author_id: current_user
     )
   end
-
 end
-- 
2.30.9