From 664fc38ebc7729fc89bce38c526fb902ff6c05b4 Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Mon, 28 Aug 2023 02:23:48 -0400 Subject: [PATCH] Fixed nested template --- src/render/instantview.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/render/instantview.ts b/src/render/instantview.ts index e2968d6..71ac74e 100644 --- a/src/render/instantview.ts +++ b/src/render/instantview.ts @@ -25,7 +25,10 @@ const generateTweetMedia = (tweet: APITweet): string => { // eslint-disable-next-line no-case-declarations const { altText } = mediaItem as APIPhoto; // eslint-disable-next-line sonarjs/no-nested-template-literals - media += ``; + media += ``.format({ + altText: altText ? `alt="${altText}"` : '', + url: mediaItem.url + }); break; case 'video': media += `