Merge pull request #2626 from dpalou/MOBILE-3523

MOBILE-3523 forum: Fix tags not displayed in 3.7+
main
Dani Palou 2020-11-27 10:32:16 +01:00 committed by GitHub
commit 22fd60149f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -539,7 +539,15 @@ export class AddonModForumProvider {
unread: !post.postread, unread: !post.postread,
isprivatereply: !!post.isprivatereply, isprivatereply: !!post.isprivatereply,
tags: post.tags tags: (post.tags || []).map((tag) => {
return {
id: tag.taginstanceid,
tagid: tag.id,
isstandard: tag.isstandard,
displayname: tag.rawname,
flag: !!tag.flag,
};
}),
}; };
if (post.groupname) { if (post.groupname) {

View File

@ -1,3 +1,3 @@
<ng-container *ngFor="let tag of tags"> <ng-container *ngFor="let tag of tags">
<ion-badge (click)="openTag(tag)" class="core-tag-list-tag">{{ tag.rawname }}</ion-badge> <ion-badge (click)="openTag(tag)" class="core-tag-list-tag">{{ tag.displayname }}</ion-badge>
</ng-container> </ng-container>