Skip to content

Commit b5c7e53

Browse files
authored
Merge pull request #545 from InnerSourceCommons/fix/usertile
Fix user tile bug
2 parents 36f636b + 75bcd2c commit b5c7e53

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: scripts/get_contributors.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,12 @@ module.exports = async function (filepath) {
9292
return Object.values(
9393
[...authors, ...reviewers].reduce((accumulator, user) => {
9494
// Dedupe users
95-
accumulator[user.name] = user
95+
// Some user objects do not have a URL (can't figure out why).
96+
// In that case, copy over a good URL instead.
97+
const newUser = accumulator[user.name] || user
98+
newUser.url = newUser.url || user.url
99+
accumulator[user.name] = newUser
100+
96101
return accumulator
97102
}, {})
98103
)

0 commit comments

Comments
 (0)