diff --git a/types.go b/types.go index 715f588..7a13c95 100644 --- a/types.go +++ b/types.go @@ -168,6 +168,8 @@ type ( ScreenName string `json:"screen_name"` StatusesCount int `json:"statuses_count"` Verified bool `json:"verified"` + FollowedBy bool `json:"followed_by"` + Following bool `json:"following"` } legacyUserV2 struct { diff --git a/util.go b/util.go index 6912ee1..0eda4be 100644 --- a/util.go +++ b/util.go @@ -352,6 +352,8 @@ func parseProfile(user legacyUser) Profile { URL: "https://twitter.com/" + user.ScreenName, UserID: user.IDStr, Username: user.ScreenName, + FollowedBy: user.FollowedBy, + Following: user.Following, } tm, err := time.Parse(time.RubyDate, user.CreatedAt)