Directly show new posts in carousel
This commit is contained in:
parent
c12f8220f4
commit
8efbafef3c
1 changed files with 0 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue