decaporg / decap-cms

A Git-based CMS for Static Site Generators
https://decapcms.org
MIT License
17.93k stars 3.04k forks source link

`git-gateway` backend doesn't show user avatars #583

Closed tech4him1 closed 7 years ago

tech4him1 commented 7 years ago

- Do you want to request a feature or report a bug? bug

- What is the current behavior? The git-gateway backend doesn't seem to show a user's avatar.

- If the current behavior is a bug, please provide the steps to reproduce.

  1. Using the example Netlify Identity project (https://github.com/netlify-templates/one-click-hugo-cms), add a Netlify Identity user, then login. - What is the expected behavior? The user's avatar should show up in the upper right-hand corner.

- Please mention your node.js, and operating system version. CMS version Netlify CMS version 0.5.0-beta.7

tech4him1 commented 7 years ago

This actually seems to be semi-working in beta 10, but it just shows a color/letter combination instead of the actual avatar for external providers. We should just be able to add avatar_url: user.user_metadata.avatar_url to the returned user.