now render the correct authorname and message

This commit is contained in:
Saito 2012-05-30 12:11:03 +08:00
parent 34cc38b6f5
commit c62715acc9
2 changed files with 2 additions and 23 deletions

View file

@ -96,13 +96,13 @@ class GraphCommit
h[:parents] = self.parents.collect do |p|
[p.id,0,0]
end
h[:author] = author.name
h[:author] = Gitlab::Encode.utf8(author.name)
h[:time] = time
h[:space] = space
h[:refs] = refs.collect{|r|r.name}.join(" ") unless refs.nil?
h[:id] = sha
h[:date] = date
h[:message] = message
h[:message] = Gitlab::Encode.utf8(message)
h[:login] = author.email
h
end