Browse Source

修复:tags detail 无法获取commit_user

pull/342/head
yystopf 3 years ago
parent
commit
726453ea99
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/views/api/v1/projects/tags/_simple_gitea_index_detail.json.jbuilder

+ 2
- 2
app/views/api/v1/projects/tags/_simple_gitea_index_detail.json.jbuilder View File

@@ -15,10 +15,10 @@ if tag.present? && tag.is_a?(Hash)
json.time_ago time_from_now(tag['commit']['commiter']['date'].to_time)
json.created_at_unix tag['commit']['commiter']['date'].to_time.to_i
json.committer do
json.partial! 'commit_author', user: render_cache_commit_author(tag['commit']['commiter']), name: tag['commit']['commiter']['name']
json.partial! 'api/v1/users/commit_user', user: render_cache_commit_author(tag['commit']['commiter']), name: tag['commit']['commiter']['name']
end
json.author do
json.partial! 'commit_author', user: render_cache_commit_author(tag['commit']['author']), name: tag['commit']['author']['name']
json.partial! 'api/v1/users/commit_user', user: render_cache_commit_author(tag['commit']['author']), name: tag['commit']['author']['name']
end
end
else


Loading…
Cancel
Save