Misskey breaking change

This commit is contained in:
cutls
2018-09-06 01:47:27 +09:00
parent 335440560a
commit c3b787cb39
23 changed files with 197 additions and 862 deletions

View File

@@ -36,8 +36,15 @@ function udgEx(user,acct_id){
todo(error);
console.error(error);
}).then(function(json) {
var id=json.accounts[0].id;
udg(id,acct_id);
console.log(json);
if(json.accounts){
var id=json.accounts[0].id;
udg(id,acct_id);
}else{
var url="https://"+user.split('@')[1]+"/@"+user.split('@')[0];
const {shell} = require('electron');
shell.openExternal(url);
}
});
return;
}