Skip to content

Commit f2dce40

Browse files
committed
fix: use correct commiter avatars
User data from commits has different details than from activity. Commit data has much less information about authors and some of it is stored under different keys. The only values that matter are: - login: same in both - avatar URL: avatar_url for ACTIVITY, avatarUrl for COMMIT - activity count: added by the script, always as activityCount
1 parent 3d1e7e5 commit f2dce40

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

template/js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ require('nighthawk')({
101101
<li>
102102
<a href="https://www.github.com/${user.login}" target="_blank">
103103
<span class="avatar">
104-
<img src="${user.avatar_url}" />
104+
<img src="${user.avatar_url || user.avatarUrl}" />
105105
</span>
106106
@${user.login}
107107
</a>: ${user.activityCount} contribution

0 commit comments

Comments
 (0)