fix title and status retrieval count
This commit is contained in:
parent
98ac80dccf
commit
52202af43e
|
@ -189,7 +189,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="statusSection === 'media'" class="status-media">
|
<div *ngIf="statusSection === 'media'" class="status-media">
|
||||||
<div *ngFor="let media of statusWrapper.status.media_attachments">
|
<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}}" />
|
<img class="status-media__image" src="{{media.preview_url}}" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -165,7 +165,7 @@ export class UserProfileComponent implements OnInit {
|
||||||
private getStatuses(userAccount: AccountInfo, account: Account, onlyMedia: boolean, excludeReplies: boolean, maxId: string): Promise<void> {
|
private getStatuses(userAccount: AccountInfo, account: Account, onlyMedia: boolean, excludeReplies: boolean, maxId: string): Promise<void> {
|
||||||
this.statusLoading = true;
|
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[]) => {
|
.then((statuses: Status[]) => {
|
||||||
this.loadStatus(userAccount, statuses);
|
this.loadStatus(userAccount, statuses);
|
||||||
})
|
})
|
||||||
|
@ -294,17 +294,6 @@ export class UserProfileComponent implements OnInit {
|
||||||
const excludeReplies = this.statusSection === 'status';
|
const excludeReplies = this.statusSection === 'status';
|
||||||
|
|
||||||
this.getStatuses(this.currentlyUsedAccount, this.displayedAccount, onlyMedia, excludeReplies, this.maxId);
|
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[]) {
|
private loadStatus(userAccount: AccountInfo, statuses: Status[]) {
|
||||||
|
|
Loading…
Reference in New Issue