1313 * Name.
1414 * @property {string } slug
1515 * Slug.
16- * @property {string | undefined } twitterHandle
17- * Twitter username.
1816 * @property {string | undefined } website
1917 * Website.
2018 *
5957 * Whether it’s spam.
6058 * @property {number } total
6159 * Total donations.
62- * @property {string | undefined } [twitter]
63- * Twitter username.
6460 * @property {string | undefined } [url]
6561 * URL.
6662 */
@@ -82,7 +78,6 @@ const endpoint = 'https://api.opencollective.com/graphql/v2'
8278const variables = { slug : 'unified' }
8379
8480const ghBase = 'https://github.com/'
85- const twBase = 'https://twitter.com/'
8681
8782// To do: paginate.
8883const query = `query($slug: String) {
@@ -96,7 +91,6 @@ const query = `query($slug: String) {
9691 imageUrl
9792 name
9893 slug
99- twitterHandle
10094 website
10195 }
10296 totalDonations { value }
@@ -137,13 +131,12 @@ const members = []
137131for ( const d of collectiveBody . data . collective . members . nodes ) {
138132 const oc = d . account . slug
139133 const github = d . account . githubHandle || undefined
140- const twitter = d . account . twitterHandle || undefined
141134 let url = d . account . website || undefined
142135 const info = control . find ( function ( d ) {
143136 return d . oc === oc
144137 } )
145138
146- if ( url === ghBase + github || url === twBase + twitter ) {
139+ if ( url === ghBase + github ) {
147140 url = undefined
148141 }
149142
@@ -163,7 +156,6 @@ for (const d of collectiveBody.data.collective.members.nodes) {
163156 oc,
164157 spam : ! info || info . spam ,
165158 total : d . totalDonations . value ,
166- twitter,
167159 url
168160 }
169161
0 commit comments