From 8efbafef3cff1f71406c28e26a61acc53c16c339 Mon Sep 17 00:00:00 2001 From: "Max L." Date: Sat, 25 Nov 2023 01:13:05 +0100 Subject: [PATCH] Directly show new posts in carousel --- script.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/script.js b/script.js index fa94ffb..afa5fca 100644 --- a/script.js +++ b/script.js @@ -341,9 +341,7 @@ $(document).ready(async function() { const newPosts = await Promise.all(hashtagsArray.map(hashtag => fetchPosts(serverUrl, hashtag))); let updated = updateWall(newPosts.flat()); if ( updated > 0 ) { - hideCarousel() updateCarousel(slides, newPosts.flat()); - setTimeout(async function() { showCarousel(); }, duration) } }, refresh); } else {