Changed API call to get more results

This commit is contained in:
Andreas Grasser 2022-11-20 16:18:38 +01:00
parent 0ed0e15a54
commit bd469cbd11
No known key found for this signature in database
GPG key ID: A6A70D76EF291D77
2 changed files with 4 additions and 3 deletions

View file

@ -46,9 +46,10 @@ function getIdFromName(name, server) {
} }
// Get a JSON String with all the posted statuses from the account and call processStatuses() // Get a JSON String with all the posted statuses from the account and call processStatuses()
async function getStatuses() { async function getStatuses(startID=null) {
// Build the URL // Build the URL
let url = "https://"+userInfo[2]+"/api/v1/accounts/"+userInfo[1]+"/statuses?exclude_replies=true&exclude_reblogs=true"; let url = "https://"+userInfo[2]+"/api/v1/accounts/"+userInfo[1]+"/statuses?exclude_replies=true&exclude_reblogs=true&limit=40";
//if (startID) url = url+"&max_id="+startID
// Do the async http request and call processStatuses() // Do the async http request and call processStatuses()
httpRequest(url, processStatuses); httpRequest(url, processStatuses);
} }

View file

@ -43,5 +43,5 @@ a {
.userSubDiv { .userSubDiv {
min-width: 400px; min-width: 400px;
padding: 20px; max-width: 90%;
} }