@@ -170,7 +170,7 @@ func main() {
170170 log .Crit ("Failed to read account key contents" , "file" , * accJSONFlag , "err" , err )
171171 }
172172 acc , err := ks .Import (blob , pass , pass )
173- if err != nil {
173+ if err != nil && err != keystore . ErrAccountAlreadyExists {
174174 log .Crit ("Failed to import faucet signer account" , "err" , err )
175175 }
176176 ks .Unlock (acc , pass )
@@ -694,8 +694,11 @@ func authTwitter(url string) (string, string, common.Address, error) {
694694 return "" , "" , common.Address {}, errors .New ("Invalid Twitter status URL" )
695695 }
696696 // 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+
699702 res , err := http .Get (url )
700703 if err != nil {
701704 return "" , "" , common.Address {}, err
0 commit comments