13
13
* Name.
14
14
* @property {string } slug
15
15
* Slug.
16
- * @property {string | undefined } twitterHandle
17
- * Twitter username.
18
16
* @property {string | undefined } website
19
17
* Website.
20
18
*
59
57
* Whether it’s spam.
60
58
* @property {number } total
61
59
* Total donations.
62
- * @property {string | undefined } [twitter]
63
- * Twitter username.
64
60
* @property {string | undefined } [url]
65
61
* URL.
66
62
*/
@@ -82,7 +78,6 @@ const endpoint = 'https://api.opencollective.com/graphql/v2'
82
78
const variables = { slug : 'unified' }
83
79
84
80
const ghBase = 'https://github.com/'
85
- const twBase = 'https://twitter.com/'
86
81
87
82
// To do: paginate.
88
83
const query = `query($slug: String) {
@@ -96,7 +91,6 @@ const query = `query($slug: String) {
96
91
imageUrl
97
92
name
98
93
slug
99
- twitterHandle
100
94
website
101
95
}
102
96
totalDonations { value }
@@ -137,13 +131,12 @@ const members = []
137
131
for ( const d of collectiveBody . data . collective . members . nodes ) {
138
132
const oc = d . account . slug
139
133
const github = d . account . githubHandle || undefined
140
- const twitter = d . account . twitterHandle || undefined
141
134
let url = d . account . website || undefined
142
135
const info = control . find ( function ( d ) {
143
136
return d . oc === oc
144
137
} )
145
138
146
- if ( url === ghBase + github || url === twBase + twitter ) {
139
+ if ( url === ghBase + github ) {
147
140
url = undefined
148
141
}
149
142
@@ -163,7 +156,6 @@ for (const d of collectiveBody.data.collective.members.nodes) {
163
156
oc,
164
157
spam : ! info || info . spam ,
165
158
total : d . totalDonations . value ,
166
- twitter,
167
159
url
168
160
}
169
161
0 commit comments