diff --git a/src/embed/status.ts b/src/embed/status.ts
index ca55ca0..5076034 100644
--- a/src/embed/status.ts
+++ b/src/embed/status.ts
@@ -42,7 +42,7 @@ export const handleStatus = async (
isTelegram /*&& !tweet.possibly_sensitive*/ &&
!flags?.direct &&
!flags?.api &&
- (tweet.media?.mosaic || tweet.is_note_tweet);
+ (tweet.media?.mosaic || tweet.is_note_tweet || tweet.quote);
let ivbody = '';
diff --git a/src/render/instantview.ts b/src/render/instantview.ts
index db55aa2..03a51f3 100644
--- a/src/render/instantview.ts
+++ b/src/render/instantview.ts
@@ -58,6 +58,34 @@ const htmlifyHashtags = (input: string): string => {
});
};
+/* TODO: maybe refactor so all tweets pull from this */
+const generateTweet = (tweet: APITweet, isQuote = false): string => {
+ let text = sanitizeText(tweet.text).replace(/\n/g, '
');
+ text = htmlifyLinks(text);
+ text = htmlifyHashtags(text);
+ text = populateUserLinks(tweet, text);
+
+ return `
+
+ ${!isQuote ? `
' : ''} + ${text} + ${isQuote ? '' : ''} + ${generateTweetMedia(tweet)} + ${(!isQuote && tweet.quote) ? generateTweet(tweet.quote, true) : ''} + View original` +} + export const renderInstantView = (properties: RenderProperties): ResponseInstructions => { console.log('Generating Instant View (placeholder)...'); const { tweet } = properties; @@ -71,11 +99,6 @@ export const renderInstantView = (properties: RenderProperties): ResponseInstruc `` ]; - let text = sanitizeText(tweet.text).replace(/\n/g, '
${text}
- ${generateTweetMedia(tweet)} - View original + ${generateTweet(tweet)} `;