Skip to content

Commit

Permalink
Attempted fix for markbates#483
Browse files Browse the repository at this point in the history
  • Loading branch information
chizutan5 committed Dec 21, 2022
1 parent b5cb5a6 commit 0b0e55d
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 0b0e55d

Please sign in to comment.