diff --git a/app/js/tl/card.js b/app/js/tl/card.js index 0574ba51..17cb7e31 100644 --- a/app/js/tl/card.js +++ b/app/js/tl/card.js @@ -337,16 +337,20 @@ function cardHtmlShow(acct_id, id) { if (json.provider_name == 'Twitter') { var url = json.author_url var status = json.url.match(/^https:\/\/twitter.com\/[_a-zA-Z0-9-]+\/status\/([0-9]+)/); + var statusId = false if(status){ if(status.length > 0){ - status = status[1] + var statusId = status[1] } } - url = url + '/status/' + status - analyze = ` -
${json.author_name}
${json.description}${json.url}
- - ` + console.log(statusId) + if(statusId){ + url = json.url + analyze = ` +
${json.author_name}
${json.description}${json.url}
+ + ` + } } $('[toot-id=' + id + '] .additional').html(analyze) })