@@ -170,7 +170,7 @@ func main() {
170
170
log .Crit ("Failed to read account key contents" , "file" , * accJSONFlag , "err" , err )
171
171
}
172
172
acc , err := ks .Import (blob , pass , pass )
173
- if err != nil {
173
+ if err != nil && err != keystore . ErrAccountAlreadyExists {
174
174
log .Crit ("Failed to import faucet signer account" , "err" , err )
175
175
}
176
176
ks .Unlock (acc , pass )
@@ -694,8 +694,11 @@ func authTwitter(url string) (string, string, common.Address, error) {
694
694
return "" , "" , common.Address {}, errors .New ("Invalid Twitter status URL" )
695
695
}
696
696
// Twitter's API isn't really friendly with direct links. Still, we don't
697
- // want to do ask read permissions from users, so just load the public posts and
698
- // scrape it for the Ethereum address and profile URL.
697
+ // want to do ask read permissions from users, so just load the public posts
698
+ // and scrape it for the Ethereum address and profile URL. We need to load
699
+ // the mobile page though since the main page loads tweet contents via JS.
700
+ url = strings .Replace (url , "https://twitter.com/" , "https://mobile.twitter.com/" , 1 )
701
+
699
702
res , err := http .Get (url )
700
703
if err != nil {
701
704
return "" , "" , common.Address {}, err
0 commit comments