mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
fix: project controbutor nil
This commit is contained in:
@@ -80,7 +80,7 @@ json.contributors do
|
||||
total_count = @result[:contributor].size
|
||||
json.list @result[:contributor].each do |contributor|
|
||||
user = User.find_by(gitea_uid: contributor["id"])
|
||||
if contributor["login"] == "root"
|
||||
if contributor["login"] == "root" || user.nil?
|
||||
total_count -= 1
|
||||
next
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user