diff --git a/build/lib/tweetparse.js b/build/lib/tweetparse.js index c8b6740..5cde97e 100644 --- a/build/lib/tweetparse.js +++ b/build/lib/tweetparse.js @@ -45,8 +45,9 @@ var entityProcessors = { urls (urls, tweet) { urls.forEach(({ url, expanded_url, display_url }) => { - const className = (tweet.quoted_status_permalink && url === tweet.quoted_status_permalink.url) ? 'quoted-tweet' : 'url'; - tweet.html = tweet.html.replace(url, `${display_url}`); + const isQT = tweet.quoted_status_permalink && url === tweet.quoted_status_permalink.url; + const className = isQT ? 'quoted-tweet' : 'url'; + tweet.html = tweet.html.replace(url, isQT ? '' : `${display_url}`); }); },