MOBILE-3523 forum: Fix tags not displayed in 3.7+
parent
baa2a64322
commit
da9d90e650
|
@ -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) {
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue