Skip to content

Commit 1f11e16

Browse files
authored
fix: Fix the display of video youtube in a quest - MEED-9480 - Meeds-io/meeds#3501 (#1941)
This change will fix the display of video youtube in a quest.
1 parent a0e1533 commit 1f11e16

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

services/src/main/java/io/meeds/gamification/rest/builder/RuleBuilder.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,9 @@ public static RuleRestEntity toRestEntity(ProgramService programService, // NOSO
155155
Utils.getCurrentUser());
156156
translatedLabels(translationService, rule, locale);
157157

158-
String description = rule.getDescription();
159158
return new RuleRestEntity(rule.getId(),
160159
rule.getTitle(),
161-
processRichEditorContent(xmlProcessor, description),
160+
rule.getDescription(),
162161
rule.getScore(),
163162
program,
164163
rule.isEnabled(),
@@ -220,10 +219,6 @@ public static UserInfoContext toUserContext(ProgramService programService,
220219
return userContext;
221220
}
222221

223-
public static String processRichEditorContent(XMLProcessor xmlProcessor, String content) {
224-
return xmlProcessor == null ? content : (String) xmlProcessor.process(content);
225-
}
226-
227222
private static List<RealizationDTO> getRealizations(RealizationService realizationService,
228223
long ruleId,
229224
PeriodType periodType,

0 commit comments

Comments
 (0)