From 25a1b7e7aeefee4517d6abb2b23e561a8ba1b838 Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Tue, 22 Aug 2023 16:07:20 -0400 Subject: [PATCH] Revert "Prioritize videos above mosaic" This reverts commit 7a8d3a3bed18f689b4eb67e75f0ab8b18b18c2f1. --- src/embed/status.ts | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/embed/status.ts b/src/embed/status.ts index e1a9aa7..3f6a389 100644 --- a/src/embed/status.ts +++ b/src/embed/status.ts @@ -217,6 +217,17 @@ export const handleStatus = async ( /* This Tweet has a video to render. */ break; } + } else if (media?.mosaic) { + const instructions = renderPhoto( + { + tweet: tweet, + authorText: authorText, + engagementText: engagementText, + userAgent: userAgent + }, + media.mosaic + ); + headers.push(...instructions.addHeaders); } else if (media?.videos) { const instructions = renderVideo( { tweet: tweet, userAgent: userAgent, text: newText }, @@ -229,17 +240,6 @@ export const handleStatus = async ( if (instructions.siteName) { siteName = instructions.siteName; } - } else if (media?.mosaic) { - const instructions = renderPhoto( - { - tweet: tweet, - authorText: authorText, - engagementText: engagementText, - userAgent: userAgent - }, - media.mosaic - ); - headers.push(...instructions.addHeaders); } else if (media?.photos) { const instructions = renderPhoto( {