diff --git a/mkdocs_git_committers_plugin_2/plugin.py b/mkdocs_git_committers_plugin_2/plugin.py index 2e86a4d..efbbf8c 100644 --- a/mkdocs_git_committers_plugin_2/plugin.py +++ b/mkdocs_git_committers_plugin_2/plugin.py @@ -124,7 +124,7 @@ def get_contributors_to_file(self, path, submodule_repo=None): authors.append({'login': commit['committer']['login'], 'name': commit['committer']['login'], 'url': commit['committer']['html_url'], - 'avatar': commit['committer']['avatar_url'] if commit['author']['avatar_url'] is not None else '' + 'avatar': commit['committer']['avatar_url'] if commit['committer']['avatar_url'] is not None else '' }) if commit['commit'] and commit['commit']['message'] and '\nCo-authored-by:' in commit['commit']['message']: github_coauthors_exist = True