Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
Set Limit to 40 postings (maximum of the api without paging)
  • Loading branch information
rstockm authored Jan 25, 2024
1 parent 6c43c6e commit 5f1237b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5f1237b

Please sign in to comment.