Add Sensitive field to Profile struct

This commit is contained in:
Joaco Esteban 2024-02-14 12:27:29 +01:00
parent a1511c3869
commit bd65223b41
2 changed files with 2 additions and 0 deletions

View file

@ -33,6 +33,7 @@ type Profile struct {
UserID string UserID string
Username string Username string
Website string Website string
Sensitive bool
} }
type user struct { type user struct {

View file

@ -386,6 +386,7 @@ func parseProfileV2(user userResult) Profile {
URL: "https://twitter.com/" + u.ScreenName, URL: "https://twitter.com/" + u.ScreenName,
UserID: user.ID, UserID: user.ID,
Username: u.ScreenName, Username: u.ScreenName,
Sensitive: u.PossiblySensitive,
} }
tm, err := time.Parse(time.RubyDate, u.CreatedAt) tm, err := time.Parse(time.RubyDate, u.CreatedAt)