#971 add some explanation
This commit is contained in:
parent
acd179d1a8
commit
54b15fcfd5
|
@ -75,6 +75,7 @@ class ActivityFeedObserver < ActiveRecord::Observer
|
|||
change_type = record.change_type
|
||||
branch_name = record.refname.split('/').last
|
||||
if record.user # online update
|
||||
#FIXME using oldrev is a hack (only for online edit).
|
||||
last_commits, first_commiter = [[record.oldrev, record.message]], record.user
|
||||
else
|
||||
last_commits = record.project.repo.log(branch_name, nil).first(3)
|
||||
|
|
Loading…
Reference in New Issue