From 5be372a3e9394d51e62f3ae3064cd8bed168089e Mon Sep 17 00:00:00 2001 From: Nicolas Constant Date: Tue, 6 Aug 2019 20:18:31 -0400 Subject: [PATCH] limit profil status retrieval to 20 --- .../components/stream/user-profile/user-profile.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/stream/user-profile/user-profile.component.ts b/src/app/components/stream/user-profile/user-profile.component.ts index 6abbb0a7..220065a4 100644 --- a/src/app/components/stream/user-profile/user-profile.component.ts +++ b/src/app/components/stream/user-profile/user-profile.component.ts @@ -143,7 +143,7 @@ export class UserProfileComponent implements OnInit { } private getPinnedStatuses(userAccount: AccountInfo, account: Account): Promise { - 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 { 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); })