@@ -38,12 +38,7 @@ const accountTypes = [
3838 'twitter' ,
3939 'facebook' ,
4040 'github' ,
41- 'hackerNews' ,
4241 'bitcoin' ,
43- 'ethereum' ,
44- 'pgp' ,
45- 'ssh' ,
46- 'linkedIn' ,
4742 'instagram'
4843]
4944
@@ -235,7 +230,7 @@ export class DefaultProfilePage extends Component {
235230 } )
236231 }
237232
238- onPostVerificationButtonClick = ( event , service , identifier ) => {
233+ onPostVerificationButtonClick = ( event , service ) => {
239234 const profileIndex = this . props . defaultIdentity
240235 const identity = this . props . localIdentities [ profileIndex ]
241236
@@ -253,11 +248,6 @@ export class DefaultProfilePage extends Component {
253248 verificationUrl = 'https://gist.github.com/'
254249 } else if ( service === 'instagram' ) {
255250 // no op
256- } else if ( service === 'linkedIn' ) {
257- verificationUrl = 'https://www.linkedin.com/feed/'
258- // verificationUrl = `https://www.linkedin.com/shareArticle?mini=true&url=http://www.blockstack.org&title=${verificationText}`
259- } else if ( service === 'hackerNews' ) {
260- verificationUrl = `https://news.ycombinator.com/user?id=${ identifier } `
261251 }
262252
263253 if ( verificationUrl . length > 0 ) {
@@ -279,9 +269,6 @@ export class DefaultProfilePage extends Component {
279269 hasAccount = true
280270 account . identifier = identifier
281271 account . proofUrl = proofUrl
282- if ( this . shouldAutoGenerateProofUrl ( service ) ) {
283- account . proofUrl = this . generateProofUrl ( service , identifier )
284- }
285272 this . setState ( { profile } )
286273 this . saveProfile ( profile )
287274 this . refreshProofs ( )
@@ -290,9 +277,6 @@ export class DefaultProfilePage extends Component {
290277
291278 if ( ! hasAccount && identifier . length > 0 ) {
292279 const newAccount = this . createNewAccount ( service , identifier , proofUrl )
293- if ( this . shouldAutoGenerateProofUrl ( service ) ) {
294- newAccount . proofUrl = this . generateProofUrl ( service , identifier )
295- }
296280 profile . account . push ( newAccount )
297281 this . setState ( { profile } )
298282 this . saveProfile ( profile )
@@ -365,18 +349,6 @@ export class DefaultProfilePage extends Component {
365349 }
366350 }
367351
368- shouldAutoGenerateProofUrl ( service ) {
369- return service === 'hackerNews'
370- }
371-
372- generateProofUrl ( service , identifier ) {
373- if ( service === 'hackerNews' ) {
374- return `https://news.ycombinator.com/user?id=${ identifier } `
375- }
376-
377- return ''
378- }
379-
380352 saveProfile ( newProfile ) {
381353 logger . info ( 'saveProfile' )
382354
0 commit comments