Commit a9b04c45 authored by Douwe Maan's avatar Douwe Maan

Fix Snippet#participants.

parent c644dd01
...@@ -138,6 +138,7 @@ class Commit ...@@ -138,6 +138,7 @@ class Commit
users = [] users = []
users << author users << author
users << committer users << committer
mentions = [] mentions = []
mentions << self.mentioned_users(current_user, project) mentions << self.mentioned_users(current_user, project)
......
...@@ -122,6 +122,7 @@ module Issuable ...@@ -122,6 +122,7 @@ module Issuable
users = [] users = []
users << author users << author
users << assignee if is_assigned? users << assignee if is_assigned?
mentions = [] mentions = []
mentions << self.mentioned_users(current_user) mentions << self.mentioned_users(current_user)
......
...@@ -91,6 +91,8 @@ class Snippet < ActiveRecord::Base ...@@ -91,6 +91,8 @@ class Snippet < ActiveRecord::Base
users = [] users = []
users << author users << author
mentions = []
notes.each do |note| notes.each do |note|
users << note.author users << note.author
mentions << note.mentioned_users(current_user) mentions << note.mentioned_users(current_user)
......
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