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:
parent
f2ef27243a
commit
bc8f8979c1
1 changed files with 3 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue