Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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