fix pinned status display

This commit is contained in:
Nicolas Constant 2019-08-05 18:56:45 -04:00
parent 90d227efca
commit 0ce6cf8d4b
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
2 changed files with 2 additions and 1 deletions

View File

@ -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>

View File

@ -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);
}