diff --git a/app/css/tl.css b/app/css/tl.css
index 77f37184..2384d74b 100644
--- a/app/css/tl.css
+++ b/app/css/tl.css
@@ -643,6 +643,7 @@ audio {
.vis-data {
font-size: 1rem !important;
margin: 5px;
+ user-select: none;
}
@keyframes jump {
0% {
diff --git a/app/js/userdata/his-data.js b/app/js/userdata/his-data.js
index 370ca0f9..4e877055 100644
--- a/app/js/userdata/his-data.js
+++ b/app/js/userdata/his-data.js
@@ -554,11 +554,15 @@ function showFrl(more, acct_id) {
});
}
//Keybase
-function udAdd(start) {
- fetch(start, {
+function udAdd(acct_id, id, start) {
+ var domain = localStorage.getItem("domain_" + acct_id);
+ var at = localStorage.getItem("acct_" + acct_id + "_at");
+ var proof = "https://" + domain + "/api/v1/accounts/" + id + "/identity_proofs"
+ fetch(proof, {
method: 'GET',
headers: {
- 'Accept': 'application/json'
+ 'content-type': 'application/json',
+ 'Authorization': 'Bearer ' + at
},
//body: JSON.stringify({})
}).then(function (response) {
@@ -567,16 +571,10 @@ function udAdd(start) {
todo(error);
console.error(error);
}).then(function (json) {
- var fields = json.attachment;
+ var fields = json;
for (var i = 0; i < fields.length; i++) {
- if (fields[i].type == "IdentityProof") {
- if (fields[i].signatureAlgorithm == "keybase") {
- var html = '' + escapeHTML(fields[i].signatureAlgorithm) + ':' + escapeHTML(fields[i].name) + '';
- } else {
- var html = '' + escapeHTML(fields[i].signatureAlgorithm) + ':' + escapeHTML(fields[i].name) + '';
- }
- $("#his-proof-prof").append(html)
- }
+ var html = '' + escapeHTML(fields[i].provider) + ':' + escapeHTML(fields[i].provider_username) + '';
+ $("#his-proof-prof").append(html)
}
});
fetch("https://notestock.osa-p.net/api/v1/isstock.json?id=" + start.replace("@", "users/"), {
diff --git a/app/js/userdata/showOnTL.js b/app/js/userdata/showOnTL.js
index a1301031..503a4e0a 100644
--- a/app/js/userdata/showOnTL.js
+++ b/app/js/userdata/showOnTL.js
@@ -205,7 +205,7 @@ function udg(user, acct_id) {
}
todc();
//外部データ取得(死かもしれないので)
- udAdd(json.url);
+ udAdd(acct_id, user, json.url);
});
}
function misskeyUdg(user, acct_id) {