From e41c38f41dc8e05e329a0e07d39c63f825e2da8e Mon Sep 17 00:00:00 2001 From: Cutls Date: Tue, 9 Jul 2019 00:27:31 +0900 Subject: [PATCH] Change: remove get card API --- app/js/tl/card.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/js/tl/card.js b/app/js/tl/card.js index fcacbbbc..b649c0f9 100644 --- a/app/js/tl/card.js +++ b/app/js/tl/card.js @@ -155,7 +155,7 @@ function additionalIndv(tlid, acct_id, id) { }); } else { 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, { method: 'GET', headers: { @@ -169,6 +169,7 @@ function additionalIndv(tlid, acct_id, id) { todo(error); console.error(error); }).then(function (json) { + json = json.card; //このリンク鳥やんけ、ってとき if (json.provider_name == "Twitter") { if (json.image) {