diff --git a/src/api/status.ts b/src/api/status.ts index 624b1e7..fa8e003 100644 --- a/src/api/status.ts +++ b/src/api/status.ts @@ -102,7 +102,7 @@ const populateTweetProperties = async ( // Add Tweet source but remove the link HTML tag if (tweet.source) { - apiTweet.source = tweet.source + apiTweet.source = (tweet.source || '') .replace(/(.+?)<\/a>/, '$2') }