mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 11:50:49 +08:00
FIX bug
This commit is contained in:
@@ -13,7 +13,7 @@ json.array! @branches do |branch|
|
||||
json.time_from_now time_from_now(branch['commit']['timestamp'])
|
||||
end
|
||||
|
||||
user = find_user_by_login_or_mail(branch['commit']['author']['username'])
|
||||
user = find_user_by_login_or_mail(branch['commit']['author']['name'])
|
||||
json.author do
|
||||
if user
|
||||
json.login user.login
|
||||
|
||||
Reference in New Issue
Block a user