fix title and status retrieval count

This commit is contained in:
Nicolas Constant 2019-08-09 00:49:23 -04:00
parent 98ac80dccf
commit 52202af43e
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
2 changed files with 2 additions and 13 deletions

View File

@ -189,7 +189,7 @@
</div>
<div *ngIf="statusSection === 'media'" class="status-media">
<div *ngFor="let media of statusWrapper.status.media_attachments">
<a href title="open image" (click)="openAttachment(media)">
<a href title="open" (click)="openAttachment(media)">
<img class="status-media__image" src="{{media.preview_url}}" />
</a>
</div>

View File

@ -165,7 +165,7 @@ export class UserProfileComponent implements OnInit {
private getStatuses(userAccount: AccountInfo, account: Account, onlyMedia: boolean, excludeReplies: boolean, maxId: string): Promise<void> {
this.statusLoading = true;
return this.mastodonService.getAccountStatuses(userAccount, account.id, onlyMedia, false, excludeReplies, maxId, null, 20)
return this.mastodonService.getAccountStatuses(userAccount, account.id, onlyMedia, false, excludeReplies, maxId, null, 40)
.then((statuses: Status[]) => {
this.loadStatus(userAccount, statuses);
})
@ -294,17 +294,6 @@ export class UserProfileComponent implements OnInit {
const excludeReplies = this.statusSection === 'status';
this.getStatuses(this.currentlyUsedAccount, this.displayedAccount, onlyMedia, excludeReplies, this.maxId);
// this.mastodonService.getAccountStatuses(userAccount, this.displayedAccount.id, false, false, true, this.maxId, null, 20)
// .then((statuses: Status[]) => {
// this.loadStatus(userAccount, statuses);
// })
// .catch(err => {
// this.notificationService.notifyHttpError(err);
// })
// .then(() => {
// this.statusLoading = false;
// });
}
private loadStatus(userAccount: AccountInfo, statuses: Status[]) {