|
|
|
@@ -26,9 +26,13 @@ module RepositoriesHelper |
|
|
|
end
|
|
|
|
|
|
|
|
def render_commit_author(author_json)
|
|
|
|
return nil if author_json.blank? || author_json["id"].blank?
|
|
|
|
# find_user_by_login author_json['name']
|
|
|
|
find_user_by_gitea_uid author_json['id']
|
|
|
|
return nil if author_json.blank? || (author_json["id"].blank? && author_json['name'].blank?)
|
|
|
|
if author_json["id"].present?
|
|
|
|
return find_user_by_gitea_uid author_json['id']
|
|
|
|
end
|
|
|
|
if author_json["id"].nil? && author_json["name"].present?
|
|
|
|
return find_user_by_login author_json['name']
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def readme_render_decode64_content(str, path)
|
|
|
|
|