Merge pull request #2374 from crazyserver/MOBILE-3420

MOBILE-3420 blog: Fix image url embedded on summaries
main
Juan Leyva 2020-05-19 17:15:10 +02:00 committed by GitHub
commit 180f99e0ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,7 @@ import { Component, Input, OnInit, ViewChild } from '@angular/core';
import { Content } from 'ionic-angular';
import { CoreDomUtilsProvider } from '@providers/utils/dom';
import { CoreUtilsProvider } from '@providers/utils/utils';
import { CoreTextUtils } from '@providers/utils/text';
import { CoreSitesProvider } from '@providers/sites';
import { CoreUserProvider } from '@core/user/providers/user';
import { AddonBlogProvider, AddonBlogPost } from '../../providers/blog';
@ -162,6 +163,8 @@ export class AddonBlogEntriesComponent implements OnInit {
entry.contextInstanceId = entry.userid;
}
entry.summary = CoreTextUtils.instance.replacePluginfileUrls(entry.summary, entry.summaryfiles || []);
return this.userProvider.getProfile(entry.userid, entry.courseid, true).then((user) => {
entry.user = user;
}).catch(() => {