@@ -42,11 +42,12 @@ type User struct {
4242 IndexedAt time.Time `json:"indexedAt"`
4343 CreatedAt FTime `json:"createdAt"`
4444 Associated struct {
45- Lists int `json:"lists"`
46- FeedGens int `json:"feedgens"`
47- StarterPacks int `json:"starterPacks"`
48- Labeler bool `json:"labeler"`
49- CreatedAt FTime `json:"created_at"`
45+ Lists int `json:"lists"`
46+ FeedGens int `json:"feedgens"`
47+ StarterPacks int `json:"starterPacks"`
48+ Labeler bool `json:"labeler"`
49+ CreatedAt FTime `json:"created_at"`
50+ Chat UserChat `json:"chat"`
5051 } `json:"associated"`
5152 Viewer struct {
5253 Muted bool `json:"muted"`
@@ -58,6 +59,15 @@ type User struct {
5859 FollowedBy * string `json:"followedBy,omitempty"`
5960 // KnownFollowers
6061 } `json:"viewer"`
62+ Verification Verification `json:"verification"`
63+ }
64+
65+ type UserChat struct {
66+ AllowIncoming string `json:"allowIncoming"`
67+ }
68+ type Verification struct {
69+ VerifiedStatus string `json:"verifiedStatus"`
70+ TrustedVerifierStatus string `json:"trustedVerifierStatus"`
6171}
6272
6373type PostRecord struct {
@@ -689,7 +699,7 @@ func AuthorTTB(author User) *bridge.TwitterUser {
689699
690700 Lang : "en" ,
691701 Notifications : nil ,
692- Verified : false ,
702+ Verified : author . Verification . VerifiedStatus == "valid" ,
693703 ProfileBackgroundColor : "c0deed" ,
694704 GeoEnabled : false ,
695705 Description : author .Description ,
0 commit comments