limit profil status retrieval to 20

This commit is contained in:
Nicolas Constant 2019-08-06 20:18:31 -04:00
parent 985513335e
commit 5be372a3e9
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
1 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ export class UserProfileComponent implements OnInit {
}
private getPinnedStatuses(userAccount: AccountInfo, account: Account): Promise<void> {
return this.mastodonService.getAccountStatuses(userAccount, account.id, false, true, false, null, null, 40)
return this.mastodonService.getAccountStatuses(userAccount, account.id, false, true, false, null, null, 20)
.then((statuses: Status[]) => {
for (const status of statuses) {
status.pinned = true;
@ -158,7 +158,7 @@ export class UserProfileComponent implements OnInit {
private getStatuses(userAccount: AccountInfo, account: Account): Promise<void> {
this.statusLoading = true;
return this.mastodonService.getAccountStatuses(userAccount, account.id, false, false, true, null, null, 40)
return this.mastodonService.getAccountStatuses(userAccount, account.id, false, false, true, null, null, 20)
.then((statuses: Status[]) => {
this.loadStatus(userAccount, statuses);
})