Merge pull request #2374 from crazyserver/MOBILE-3420
MOBILE-3420 blog: Fix image url embedded on summariesmain
commit
180f99e0ae
|
@ -16,6 +16,7 @@ import { Component, Input, OnInit, ViewChild } from '@angular/core';
|
||||||
import { Content } from 'ionic-angular';
|
import { Content } from 'ionic-angular';
|
||||||
import { CoreDomUtilsProvider } from '@providers/utils/dom';
|
import { CoreDomUtilsProvider } from '@providers/utils/dom';
|
||||||
import { CoreUtilsProvider } from '@providers/utils/utils';
|
import { CoreUtilsProvider } from '@providers/utils/utils';
|
||||||
|
import { CoreTextUtils } from '@providers/utils/text';
|
||||||
import { CoreSitesProvider } from '@providers/sites';
|
import { CoreSitesProvider } from '@providers/sites';
|
||||||
import { CoreUserProvider } from '@core/user/providers/user';
|
import { CoreUserProvider } from '@core/user/providers/user';
|
||||||
import { AddonBlogProvider, AddonBlogPost } from '../../providers/blog';
|
import { AddonBlogProvider, AddonBlogPost } from '../../providers/blog';
|
||||||
|
@ -162,6 +163,8 @@ export class AddonBlogEntriesComponent implements OnInit {
|
||||||
entry.contextInstanceId = entry.userid;
|
entry.contextInstanceId = entry.userid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
entry.summary = CoreTextUtils.instance.replacePluginfileUrls(entry.summary, entry.summaryfiles || []);
|
||||||
|
|
||||||
return this.userProvider.getProfile(entry.userid, entry.courseid, true).then((user) => {
|
return this.userProvider.getProfile(entry.userid, entry.courseid, true).then((user) => {
|
||||||
entry.user = user;
|
entry.user = user;
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
|
Loading…
Reference in New Issue