fix pinned status display
This commit is contained in:
parent
90d227efca
commit
0ce6cf8d4b
|
@ -81,7 +81,7 @@
|
||||||
*ngIf="hasReply">
|
*ngIf="hasReply">
|
||||||
replies
|
replies
|
||||||
</div>
|
</div>
|
||||||
<div class="status__labels--label status__labels--old" title="this status is old" *ngIf="isOld">
|
<div class="status__labels--label status__labels--old" title="this status is old" *ngIf="isOld && !statusWrapper.status.pinned">
|
||||||
old
|
old
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -140,6 +140,7 @@ export class UserProfileComponent implements OnInit {
|
||||||
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, 40)
|
||||||
.then((statuses: Status[]) => {
|
.then((statuses: Status[]) => {
|
||||||
for (const status of statuses) {
|
for (const status of statuses) {
|
||||||
|
status.pinned = true;
|
||||||
const wrapper = new StatusWrapper(status, userAccount);
|
const wrapper = new StatusWrapper(status, userAccount);
|
||||||
this.pinnedStatuses.push(wrapper);
|
this.pinnedStatuses.push(wrapper);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue