Skip to content

Commit

Permalink
Merge pull request #1 from chizutan5/patch-1
Browse files Browse the repository at this point in the history
Attempted fix for markbates#483
  • Loading branch information
chizutan5 committed Dec 28, 2022
2 parents 572bc8a + 0b0e55d commit 7233e52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions providers/mastodon/mastodon.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ func userFromReader(r io.Reader, user *goth.User) error {
NickName string `json:"username"`
ID string `json:"id"`
AvatarURL string `json:"avatar"`
Email string `json:"fqn"`
}{}
err := json.NewDecoder(r).Decode(&u)
if err != nil {
Expand All @@ -165,6 +166,7 @@ func userFromReader(r io.Reader, user *goth.User) error {
user.NickName = u.NickName
user.UserID = u.ID
user.AvatarURL = u.AvatarURL
user.Email = u.Email
return nil
}

Expand Down

0 comments on commit 7233e52

Please sign in to comment.