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)));
|
const newPosts = await Promise.all(hashtagsArray.map(hashtag => fetchPosts(serverUrl, hashtag)));
|
||||||
let updated = updateWall(newPosts.flat());
|
let updated = updateWall(newPosts.flat());
|
||||||
if ( updated > 0 ) {
|
if ( updated > 0 ) {
|
||||||
hideCarousel()
|
|
||||||
updateCarousel(slides, newPosts.flat());
|
updateCarousel(slides, newPosts.flat());
|
||||||
setTimeout(async function() { showCarousel(); }, duration)
|
|
||||||
}
|
}
|
||||||
}, refresh);
|
}, refresh);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue