From bd65223b4146e94a49f4e48385c3c8c204329563 Mon Sep 17 00:00:00 2001 From: Joaco Esteban Date: Wed, 14 Feb 2024 12:27:29 +0100 Subject: [PATCH] Add Sensitive field to Profile struct --- profile.go | 1 + util.go | 1 + 2 files changed, 2 insertions(+) diff --git a/profile.go b/profile.go index 3cfc5ad..a96e2fe 100644 --- a/profile.go +++ b/profile.go @@ -33,6 +33,7 @@ type Profile struct { UserID string Username string Website string + Sensitive bool } type user struct { diff --git a/util.go b/util.go index 7851ad7..0ed2b1f 100644 --- a/util.go +++ b/util.go @@ -386,6 +386,7 @@ func parseProfileV2(user userResult) Profile { URL: "https://twitter.com/" + u.ScreenName, UserID: user.ID, Username: u.ScreenName, + Sensitive: u.PossiblySensitive, } tm, err := time.Parse(time.RubyDate, u.CreatedAt)