From da9d90e65053a8d73142632b4d6864197bc96118 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Fri, 27 Nov 2020 09:39:56 +0100 Subject: [PATCH] MOBILE-3523 forum: Fix tags not displayed in 3.7+ --- src/addon/mod/forum/providers/forum.ts | 10 +++++++++- src/core/tag/components/list/core-tag-list.html | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/addon/mod/forum/providers/forum.ts b/src/addon/mod/forum/providers/forum.ts index 4118db0f1..a758f22f2 100644 --- a/src/addon/mod/forum/providers/forum.ts +++ b/src/addon/mod/forum/providers/forum.ts @@ -539,7 +539,15 @@ export class AddonModForumProvider { unread: !post.postread, 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) { diff --git a/src/core/tag/components/list/core-tag-list.html b/src/core/tag/components/list/core-tag-list.html index 7e6372e20..60035d009 100644 --- a/src/core/tag/components/list/core-tag-list.html +++ b/src/core/tag/components/list/core-tag-list.html @@ -1,3 +1,3 @@ - {{ tag.rawname }} + {{ tag.displayname }}