Import profile picture for GitHub OAuth

GitHub profiles can hold their own avatar for use by other platforms. The GitHub authentication behaviour is now consistent with the existing Facebook/Twitter authentication:

  • if the user has uploaded a custom avatar on Discourse, nothing happens
  • if not: Retrieve and upload the avatar from GitHub. Select this as the avatar unless the user has selected gravatar.

Thank you @xrav3nz for the PR!

8 Likes