Change: remove get card API
This commit is contained in:
parent
2de05b84aa
commit
e41c38f41d
|
@ -155,7 +155,7 @@ function additionalIndv(tlid, acct_id, id) {
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
var id = $("[toot-id=" + id + "] .toot a").parents('.cvo').attr("toot-id");
|
var id = $("[toot-id=" + id + "] .toot a").parents('.cvo').attr("toot-id");
|
||||||
var start = "https://" + domain + "/api/v1/statuses/" + id + "/card";
|
var start = "https://" + domain + "/api/v1/statuses/" + id;
|
||||||
fetch(start, {
|
fetch(start, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -169,6 +169,7 @@ function additionalIndv(tlid, acct_id, id) {
|
||||||
todo(error);
|
todo(error);
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}).then(function (json) {
|
}).then(function (json) {
|
||||||
|
json = json.card;
|
||||||
//このリンク鳥やんけ、ってとき
|
//このリンク鳥やんけ、ってとき
|
||||||
if (json.provider_name == "Twitter") {
|
if (json.provider_name == "Twitter") {
|
||||||
if (json.image) {
|
if (json.image) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user