diff --git a/packages/content-handler/src/websites/nitter-handler.ts b/packages/content-handler/src/websites/nitter-handler.ts index 7ae1be97f..9b4f19517 100644 --- a/packages/content-handler/src/websites/nitter-handler.ts +++ b/packages/content-handler/src/websites/nitter-handler.ts @@ -239,6 +239,10 @@ export class NitterHandler extends ContentHandler { '_400x400' )}` const description = _.escape(tweet.text) + const imageDomain = + domain === 'twitter.com' + ? 'https://pbs.twimg.com' + : 'https://nitter.net/pic' let tweetsContent = '' for (const tweet of tweets) { @@ -253,9 +257,13 @@ export class NitterHandler extends ContentHandler { const includesHtml = tweet.attachments .map( (attachment) => - ` + ` - + ` )