From 5f1237b0aeab55d467e2dcc73b4371f40486cf36 Mon Sep 17 00:00:00 2001 From: Ralf Stockmann Date: Thu, 25 Jan 2024 15:48:13 +0100 Subject: [PATCH] Update script.js Set Limit to 40 postings (maximum of the api without paging) --- script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.js b/script.js index 6bda482..5586728 100644 --- a/script.js +++ b/script.js @@ -48,7 +48,7 @@ const fetchConfig = async function() { // fetchPosts fetches posts from the server using the given hashtag const fetchPosts = async function(serverUrl, hashtag) { try { - const posts = await $.get(`${serverUrl}/api/v1/timelines/tag/${hashtag}?limit=20`); + const posts = await $.get(`${serverUrl}/api/v1/timelines/tag/${hashtag}?limit=40`); return posts; } catch (error) { console.error(`Error loading posts for hashtag #${hashtag}:`, error);