0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Removed stray use of urlService.utils

refs #10773

- All instances of `urlService.utils` were previously migrated to use standalone SDK module `url-utils`
This commit is contained in:
Nazar Gargol 2019-07-08 17:53:29 +02:00
parent f2ef27243a
commit bc8f8979c1

View file

@ -24,11 +24,9 @@ const forPost = (id, attrs, frame) => {
*/
if (!localUtils.isContentAPI(frame)) {
if (attrs.status !== 'published' && attrs.url.match(/\/404\//)) {
attrs.url = urlService
.utils
.urlFor({
relativeUrl: urlUtils.urlJoin('/p', attrs.uuid, '/')
}, null, true);
attrs.url = urlUtils.urlFor({
relativeUrl: urlUtils.urlJoin('/p', attrs.uuid, '/')
}, null, true);
}
}