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