Add Sensitive field to Profile struct
This commit is contained in:
parent
a1511c3869
commit
bd65223b41
2 changed files with 2 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ type Profile struct {
|
|||
UserID string
|
||||
Username string
|
||||
Website string
|
||||
Sensitive bool
|
||||
}
|
||||
|
||||
type user struct {
|
||||
|
|
|
|||
1
util.go
1
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue